diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index df5fe867..fd81b6a9 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -691,22 +691,22 @@ function BattleController:checkTeamIsDead(callback) local defTeam = self.battleData:getDefTeam() if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑 - if self.waveIndex >= self.maxWaveIndex then - if callback then - callback() - end - else - self:onDefDead(function() - self.defTeam:removeAllBuff() - if self.battleData:getDefTeam():getIsDead() then - self:_findNextDefUnit() - else + self:onDefDead(function() + self.defTeam:removeAllBuff() + if self.battleData:getDefTeam():getIsDead() then + if self.waveIndex >= self.maxWaveIndex then if callback() then callback() end + else + self:_findNextDefUnit() end - end) - end + else + if callback() then + callback() + end + end + end) return true end return false