【战斗】魂印力战之躯不再免疫间接伤害

dev_chengFeng
gaoxin 2020-12-26 18:03:06 +08:00
parent f548b3647a
commit 7fe3b4f39f
1 changed files with 5 additions and 1 deletions

View File

@ -3908,6 +3908,11 @@ local passivityList = {
local function onFinalBeDamage(damagingFunc, atkRole, damage, skill, dotType, bCrit, damageType)
-- 非直接伤害不免除
if not skill then
return
end
--
local maxDamage = role:GetRoleData(RoleDataName.MaxHp) * f1
curDamage = curDamage + damage
if curDamage > maxDamage then
@ -3918,7 +3923,6 @@ local passivityList = {
end
if damagingFunc then damagingFunc(md) end
end
end
role.Event:AddEvent(BattleEventName.FinalBeDamageEnd, onFinalBeDamage)
end,