Commit 0688e04b85f7b5b308c1f7a0b2f9546568a1f304
Merge branch 'bugfix' into tr/publish
* bugfix: 成就 参数错误 3星解锁 cg 增加神器标签
Showing
3 changed files
with
7 additions
and
3 deletions
Show diff stats
src/actions/HeroAction.lua
| ... | ... | @@ -114,7 +114,7 @@ function _M.wakeRpc(agent, data) |
| 114 | 114 | |
| 115 | 115 | local curLevel = hero:getProperty("wakeL") |
| 116 | 116 | role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel}) |
| 117 | - if curLevel == 4 then -- 解锁cg | |
| 117 | + if curLevel == 3 then -- 解锁cg | |
| 118 | 118 | role:checkTaskEnter("WakeCG", {heroType = typ}) |
| 119 | 119 | end |
| 120 | 120 | hero:mylog({desc = "wake", int1 = hero:getProperty("wakeL")}) | ... | ... |
src/adv/AdvPlayer.lua
| ... | ... | @@ -670,7 +670,9 @@ function Player:effectBattleBuff() |
| 670 | 670 | for _, buff in ipairs(self.buffs) do |
| 671 | 671 | if not buff:isHide() and (buff:getType() == Buff.BATTLE_BUFF or buff:getType() == Buff.BATTLE_PASSIVE) then |
| 672 | 672 | buff:effect() |
| 673 | - buff:uncover() | |
| 673 | + if not buff.buffData.classify:sismember(7, " ") then -- 神器buff 不会清除 | |
| 674 | + buff:uncover() | |
| 675 | + end | |
| 674 | 676 | end |
| 675 | 677 | end |
| 676 | 678 | end | ... | ... |
src/models/RolePlugin.lua
| ... | ... | @@ -444,7 +444,9 @@ function RolePlugin.bind(Role) |
| 444 | 444 | type= heroType, |
| 445 | 445 | wakeL = globalCsv.unit_wake_initLevel[unitData.rare], |
| 446 | 446 | } |
| 447 | - | |
| 447 | + if heroInfo.wakeL == 3 then | |
| 448 | + self:checkTaskEnter("WakeCG", {heroType = heroType}) | |
| 449 | + end | |
| 448 | 450 | local newHero = require("models.Hero").new(heroInfo) |
| 449 | 451 | newHero:create() |
| 450 | 452 | newHero.owner = self | ... | ... |