解决 【ID1008832】

【技能】单独两个金翅大鹏,都触发了不灭,应该是先触发不灭的一方失败
dev_chengFeng
wangzhenxing 2020-08-25 17:09:46 +09:00
parent 9aceba1aa2
commit 6eaedb249d
1 changed files with 9 additions and 3 deletions

View File

@ -504,8 +504,14 @@ function RoleLogic:SetDeadFilter(filter)
end
-- 要死了
function RoleLogic:SetDead()
--如果身上有不灭效果不算英雄死亡,为解决只剩两个不灭英雄先后触发不灭,后触发不灭的可能先死问题 by:王振兴
if BattleUtil.CheckIsNoDead(self) then
self.isDead = false
else
self.isDead = true
RoleManager.AddDeadRole(self)
end
end
-- 判断是否死亡
function RoleLogic:IsDead()