project-meteor-server/data/scripts/effects/life_surge_II.lua
yogurt c442dc9ecd Script fixes and new effects.
Cleaned up unneeded requires in some scripts
Fixed Second Wind
Added new effect scripts
Added bard song scripts that mostly work
2018-06-25 23:36:18 -05:00

15 lines
451 B
Lua

require("battleutils")
function onHit(effect, attacker, defender, action, actionContainer)
if action.commandType == CommandType.AutoAttack then
local healPercent = 0.20;
if effect.GetTier() == 2 then
healPercent = 0.40;
end
local amount = math.floor((healPercent * action.amount) + 1);
attacker.AddHP(amount);
actionContainer.AddHPAction(defender.actorId, 30332, amount);
end
end;