选择技能时机调整

This commit is contained in:
xiekaidong 2023-04-18 18:18:55 +08:00
parent 293facc310
commit 80e06bcef5

View File

@ -371,8 +371,13 @@ function BattleController:enterRoundEnd()
end
self.atkTeam:onRoundEnd()
self.defTeam:onRoundEnd()
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