[战斗]==========被动199 历战之躯 被动修改 2

dev_chengFeng
wangzhenxing 2021-10-22 13:57:51 +08:00
parent 2a6f3389b3
commit e0b7df4206
2 changed files with 9 additions and 1 deletions

View File

@ -2405,7 +2405,8 @@ local effectList = {
[128] = function(caster, target, args, interval, skill)
local pro = args[1]
local round = args[2]
BattleLogic.WaitForTrigger(interval, function ()
BattleLogic.WaitForTrigger(interval, function ()
--LogError("teamdamage=="..caster.teamDamage.." pro=="..pro.." round=="..round)
local damage=floor(caster.teamDamage*pro)+round
BattleUtil.FinalDamageCountShield(nil,caster, target,damage)
end)

View File

@ -750,6 +750,13 @@ function BattleUtil.FinalDamage(skill, atkRole, defRole, damage, bCrit, damageTy
realDamage=math.abs(defRole.bloodShield:CountBloodValue(damage))
-- damage=realDamage
end
--检测历战之躯
-- 造成的最终伤害
local damagingFunc = function(dmgDeduction)
realDamage = realDamage - dmgDeduction
damage=realDamage
end
defRole.Event:DispatchEvent(BattleEventName.CheckLiZhanZhiQu, damagingFunc, atkRole, realDamage, skill, dotType, bCrit, damageType,isDirect)
--御甲过滤后的伤害只会处理扣血 by: wangzhenxing shihongyi 2021/09/27
local finalDmg = defRole.data:SubValue(RoleDataName.Hp,realDamage)
if finalDmg >= 0 then