报错修改
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
|
self.roundStep = BattleConst.BATTLE_ROUND_STEP.ON_ATK_STEP_OVER
|
||||||
|
|
||||||
local defTeam = self.battleData:getDefTeam()
|
local defTeam = self.battleData:getDefTeam()
|
||||||
if defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
|
if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
|
||||||
self:enterRefreshBoard()
|
self:enterRefreshBoard()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -301,7 +301,7 @@ end
|
|||||||
function BattleController:enterRoundEnd()
|
function BattleController:enterRoundEnd()
|
||||||
self.roundStep = BattleConst.BATTLE_ROUND_STEP.ON_END
|
self.roundStep = BattleConst.BATTLE_ROUND_STEP.ON_END
|
||||||
local defTeam = self.battleData:getDefTeam()
|
local defTeam = self.battleData:getDefTeam()
|
||||||
if defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
|
if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
|
||||||
self:enterNextWave()
|
self:enterNextWave()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user