【战斗】 142被动效果修改 间接伤害不会触发回血

dev_chengFeng
wangzhenxing 2020-12-17 18:00:15 +09:00
parent 2dd63c7986
commit c4320e59e2
1 changed files with 5 additions and 1 deletions

View File

@ -2627,7 +2627,11 @@ local passivityList = {
[142] = function(role, args)
local dot = args[1]
local f1 = args[2]
local onHit = function(target, damage, bCrit, finalDmg)
local onHit = function(target, damage, bCrit, finalDmg,damageType,skill)
--只对技能的直接目标生效,分摊出去的不会回血 2020/12/17 王振兴
if not skill then
return
end
if BattleLogic.BuffMgr:HasBuff(target, BuffName.DOT, function(buff) return buff.damageType == dot end) then
--吸血修改 finaldamage 改为 damage by往王振兴 2020/08/17
BattleUtil.ApplyTreat(role, role, floor(BattleUtil.ErrorCorrection(damage * f1)))