From 80e06bcef5c9790508f689ab648988366e5f4074 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 18 Apr 2023 18:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=8A=80=E8=83=BD=E6=97=B6?= =?UTF-8?q?=E6=9C=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/battle/controller/battle_controller.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 1be735b0..c0ad1e50 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -371,7 +371,12 @@ function BattleController:enterRoundEnd() end self.atkTeam:onRoundEnd() self.defTeam:onRoundEnd() - self:enterRoundBegin() + + if self.battleData:useAddlvCount() then + ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList()) + else + self:enterRoundBegin() + end end ---- end回合步骤 @@ -648,10 +653,6 @@ function BattleController:fillBoard() self.battleUI:fallGrid(pathMap, function() self:onFillBoardOver() self.battleUI:enableUITouch() - - if self.battleData:useAddlvCount() then - ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList()) - end end) end @@ -1158,7 +1159,10 @@ function BattleController:onSelectSkill(skillId) if self.battleData:useAddlvCount() then ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList()) + else + self:enterRoundBegin() end + if self.battleUI then self.battleUI:refreshBoard() end