吸血修改,由finalDamage 改为 damage

dev_chengFeng
wangzhenxing 2020-08-17 19:15:04 +09:00
parent 5954f92915
commit 46ec8ef4b4
2 changed files with 7 additions and 4 deletions

View File

@ -1980,7 +1980,7 @@ local effectList = {
-- 检测技能伤害治疗加成
f2 = BattleUtil.CheckSkillDamageHeal(f2, caster, arr[1])
-- 治疗血量最低队友实际伤害的f2%
BattleUtil.ApplyTreat(caster, arr[1], floor(finalDmg*f2))
BattleUtil.ApplyTreat(caster, arr[1], floor(damage*f2))
end
target.Event:AddEvent(BattleEventName.RoleBeHit, OnBeHit)
BattleUtil.CalDamage(skill, caster, target, dt, f1)

View File

@ -1687,7 +1687,8 @@ local passivityList = {
local allDamage = 0
local OnHit = function(atkRole, damage, bCrit, finalDmg, damageType, skill)
if skill and skill.type == BattleSkillType.Special then
allDamage = allDamage + finalDmg
--吸血修改finaldag 改成 damage by:王振兴 2020/08/17
allDamage = allDamage + damage
end
end
local function onSkillCast(skill)
@ -2615,7 +2616,8 @@ local passivityList = {
local f1 = args[2]
local onHit = function(target, damage, bCrit, finalDmg)
if BattleLogic.BuffMgr:HasBuff(target, BuffName.DOT, function(buff) return buff.damageType == dot end) then
BattleUtil.ApplyTreat(role, role, floor(BattleUtil.ErrorCorrection(finalDmg * f1)))
--吸血修改 finaldamage 改为 damage by往王振兴 2020/08/17
BattleUtil.ApplyTreat(role, role, floor(BattleUtil.ErrorCorrection(damage * f1)))
end
end
local onSkillCast = function(skill)
@ -3133,7 +3135,8 @@ local passivityList = {
local f1 = args[2]
local onHit = function(target, damage, bCrit, finalDmg)
if BattleLogic.BuffMgr:HasBuff(target, BuffName.DOT, function(buff) return buff.damageType == dot end) then
BattleUtil.ApplyTreat(role, role, floor(BattleUtil.ErrorCorrection(finalDmg * f1)))
--吸血修改 finaldamage 改为 damage by往王振兴 2020/08/17
BattleUtil.ApplyTreat(role, role, floor(BattleUtil.ErrorCorrection(damage * f1)))
end
end
local onSkillCast = function(skill)