报错修改

This commit is contained in:
xiekaidong 2023-04-14 18:18:22 +08:00
parent 15f1d9c1cf
commit f420d73d7a

View File

@ -266,7 +266,7 @@ function BattleController:enterAtkStepOver()
self.roundStep = BattleConst.BATTLE_ROUND_STEP.ON_ATK_STEP_OVER
local defTeam = self.battleData:getDefTeam()
if defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
self:enterRefreshBoard()
return
end
@ -301,7 +301,7 @@ end
function BattleController:enterRoundEnd()
self.roundStep = BattleConst.BATTLE_ROUND_STEP.ON_END
local defTeam = self.battleData:getDefTeam()
if defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
self:enterNextWave()
return
end