【战斗】修复凤凰技能第二回合无法触发的问题,修复战斗开始时界面显示回合数错误的问题

dev_chengFeng
gaoxin 2020-11-02 19:15:17 +08:00
parent cbe24364ec
commit 4cb8bee4ae
2 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,7 @@ local _TriggerConfig = {
end
},
[10] = {--10回合开始前
event = BattleEventName.BattleRoundEnd,
event = BattleEventName.BattleRoundStart,
triggerFunc = function(skill, ...)
return true
end

View File

@ -280,6 +280,7 @@ end
function this.InitOption()
--显示倒计时
local curRound, maxRound = BattleLogic.GetCurRound()
curRound = curRound <= 0 and 1 or curRound -- 最小显示第一回合
this.roundText.text = string.format(Language[10252], curRound, maxRound)
hadCounted = 0
@ -508,6 +509,7 @@ function this.OnRoundChanged(round)
-- body
--显示波次
local curRound, maxRound = BattleLogic.GetCurRound()
curRound = curRound <= 0 and 1 or curRound -- 最小显示第一回合
this.roundText.text = string.format(Language[10252], curRound, maxRound)
end