【战斗】被动添加

270:技能直接伤害[a]%转化为生命治疗自己
dev_chengFeng
gaoxin 2020-11-16 11:50:38 +08:00
parent 3348d60c65
commit 8edf7dd781
1 changed files with 11 additions and 0 deletions

View File

@ -5426,5 +5426,16 @@ local passivityList = {
end,
-- 技能直接伤害[a]%转化为生命治疗自己
-- a[float]
[270] = function(role, args)
local f1 = args[1]
local function onRoleHit(defRole, damage, bCrit, finalDmg, damageType, skill)
local treatValue = floor(damage * f1)
BattleUtil.ApplyTreat(role, role, treatValue)
end
role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit)
end
}
return passivityList