修改战斗逻辑

This commit is contained in:
xiekaidong 2023-05-05 17:05:38 +08:00
parent e31bdec852
commit fc39a3487d
2 changed files with 1 additions and 4 deletions

View File

@ -70,6 +70,7 @@ function BattleController:findNextDefUnit()
end end
function BattleController:onDefDead() function BattleController:onDefDead()
self.defTeam:getMainUnit():playDead()
end end
function BattleController:tick(dt) function BattleController:tick(dt)

View File

@ -154,10 +154,6 @@ function BattleControllerStage:findNextDefUnit()
self:_stageGenerateNextMonster() self:_stageGenerateNextMonster()
end end
function BattleControllerStage:onDefDead()
self.defTeam:getMainUnit():playDead()
end
function BattleControllerStage:controllBattleEnd() function BattleControllerStage:controllBattleEnd()
self.combatReport = { self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.STAGE, battleType = GConst.BattleConst.BATTLE_TYPE.STAGE,