From fc39a3487d284dae54c74cf586fc8968e2e22abb Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 5 May 2023 17:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=98=E6=96=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/controller/battle_controller.lua | 1 + lua/app/module/battle/controller/battle_controller_stage.lua | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 697b76a8..42389623 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -70,6 +70,7 @@ function BattleController:findNextDefUnit() end function BattleController:onDefDead() + self.defTeam:getMainUnit():playDead() end function BattleController:tick(dt) diff --git a/lua/app/module/battle/controller/battle_controller_stage.lua b/lua/app/module/battle/controller/battle_controller_stage.lua index 6a099be6..f68481d9 100644 --- a/lua/app/module/battle/controller/battle_controller_stage.lua +++ b/lua/app/module/battle/controller/battle_controller_stage.lua @@ -154,10 +154,6 @@ function BattleControllerStage:findNextDefUnit() self:_stageGenerateNextMonster() end -function BattleControllerStage:onDefDead() - self.defTeam:getMainUnit():playDead() -end - function BattleControllerStage:controllBattleEnd() self.combatReport = { battleType = GConst.BattleConst.BATTLE_TYPE.STAGE,