No categories assigned

LUA:SpellHeal

Revision as of 16:00, 31 July 2013 by Thefoof (talk | contribs) (Usage)

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.



Back to LUA Spell Functions Index