Difference between revisions of "LUA:SpellHeal"

(Usage)
(Usage)
Line 12: Line 12:
  
 
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 target would receive that much health, followed by the heal amount popping up in-game.
 
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 target would receive that much health, followed by the heal amount popping up in-game.
 +
 +
The list of useable HealTypes are "Heal", "Power", "Ward"(not yet implemented) and "Savagery" (also not yet implemented). If type cannot be determined the spell defaults to the type "Heal".
  
 
This will only work when called with an lua spell.
 
This will only work when called with an lua spell.

Revision as of 19:24, 31 July 2013

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 target would receive that much health, followed by the heal amount popping up in-game.

The list of useable HealTypes are "Heal", "Power", "Ward"(not yet implemented) and "Savagery" (also not yet implemented). If type cannot be determined the spell defaults to the type "Heal".

This will only work when called with an lua spell.



Back to LUA Spell Functions Index