[战斗]==============禁疗显示血量 +0

dev_chengFeng
wangzhenxing 2021-02-01 19:15:19 +09:00
parent 1a647499e0
commit d18c0fd8d4
1 changed files with 4 additions and 0 deletions

View File

@ -801,6 +801,10 @@ function BattleUtil.ApplyTreat(castRole, targetRole, value, baseFactor,critDamag
return
end
if targetRole.ctrl_noheal or targetRole:IsDead() then --禁疗和死亡无法加血
--禁疗并且没有死亡的单位显示血量+0 不走后面代码,防止触发后面的被动 by:王振兴 2021/1/27
if targetRole.ctrl_noheal and not targetRole:IsDead() then
targetRole.Event:DispatchEvent(BattleEventName.RoleBeTreated, castRole, 0, 0)
end
return
end
baseFactor = baseFactor or 1