diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index f31cfcb..0b5c4d1 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -147,9 +147,11 @@ function _M.wakeRpc(agent, data) local oldBattleV = hero:getProperty("battleV") hero:updateProperty({field = "wakeL", delta = 1}) - role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel + 1}) + curLevel = curLevel + 1 + role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel}) if curLevel == 3 then -- 解锁cg role:checkTaskEnter("WakeCG", {heroType = typ}) + role:checkTaskEnter("WakeCGSum", {count = 1}) end if curLevel >= 4 then --自动觉醒技能 @@ -173,6 +175,7 @@ function _M.wakeRpc(agent, data) SendPacket(actionCodes.Hero_wakeRpc, '') role:checkTaskEnter("HeroStarCollect", {}) + role:checkTaskEnter("HeroStartSum", {}) return true end diff --git a/src/models/RoleCross.lua b/src/models/RoleCross.lua index b7a703d..26fa3af 100644 --- a/src/models/RoleCross.lua +++ b/src/models/RoleCross.lua @@ -167,8 +167,10 @@ RoleCross.bind = function (Role) }) self:checkTaskEnter("Wake", {heroType = heroId, wakeL = initData.heros.wakeL}) self:checkTaskEnter("WakeCG", {heroType = heroId}) - self:checkTaskEnter("WakeCGSum", {count = 1}) self:checkTaskEnter("HeroTalent", {heroType = heroId, alv = aheadLevel}) + if initData.heros.wakeL == 3 then + self:checkTaskEnter("WakeCGSum", {count = 1}) + end end end diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 628645e..fd2c613 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -623,6 +623,8 @@ function RolePlugin.bind(Role) end self:checkTaskEnter("AddHero", {heroType = heroType, wakeL = newHero:getProperty("wakeL"), camp = unitData.camp, job = unitData.job, ssrCount = ssrCount}, params.notNotify) self:checkTaskEnter("HeroQualityCollect", {}) + self:checkTaskEnter("HeroStartSum", {}) + if not params.notNotify then local heroResponse = {} table.insert(heroResponse, newHero:data()) -- libgit2 0.21.2