报错修改
This commit is contained in:
parent
15f1d9c1cf
commit
f420d73d7a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user