You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:SpellHeal
- Last edited 12 years ago by I need to Update My Profile
This function will calculate heal amount and send a heal packet for the spellcast.
Syntax
SpellHeal([Spawn] Target, [String] HealType, [int] MinHeal, [int] MaxHeal)
Usage
function cast(Caster, Target, HealType, MinHeal, MaxHeal)
SpellHeal(Target, HealType, MinHeal, MaxHeal)
end
Assume the value for Target is the target of the spell, HealType is "Heal", MinHeal is 14, MaxHeal is 16, so you would have a heal damage roll based on 14 and 16, apply amount mods such as potency ect, and then the player would receive that much health, followed by the heal amount popping up in-game.
This will only work when called with an lua spell.