parent
3348d60c65
commit
8edf7dd781
|
|
@ -5426,5 +5426,16 @@ local passivityList = {
|
||||||
end,
|
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
|
return passivityList
|
||||||
Loading…
Reference in New Issue