修复行动时遭受异常状态死亡时会继续释放技能的问题

dev_chengFeng
gaoxin 2020-07-28 17:19:57 +08:00
parent 5d6586a9a5
commit 72921a8f51
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ function BattleLogic.TurnRound(debugTurn)
BattleLogic.BuffMgr:TurnUpdate(2) -- 计算持续伤害(除去流血)
-- 如果角色无法释放技能
if not SkillRole:IsAvailable() then
if not SkillRole:IsAvailable() -- 角色不能释放技能
or (SkillRole:IsDead() and not BattleLogic.BuffMgr:HasBuff(SkillRole,BuffName.NoDead)) --将死但没有不死buff
then
BattleLogic.BuffMgr:TurnUpdate(3) -- 计算持续伤害(流血)
BattleLogic.BuffMgr:TurnUpdate(4) -- 计算其他buff
BattleLogic.BuffMgr:PassUpdate() -- 计算buff轮数