Difference between revisions of "LUA:CancelSpell"
(Created page with "= LUA Functions: CancelSpell() = Will cancel the spell that this function is called from ==== Syntax ==== CancelSpell() ==== Usage ==== <pre> function cast(Caster, Target) ...") |
(No difference)
|
Latest revision as of 14:52, 16 January 2014
LUA Functions: CancelSpell()
Will cancel the spell that this function is called from
Syntax
CancelSpell()
Usage
function cast(Caster, Target)
AddSpellTimer(1000, "CancelSpell")
end
function CancelSpell(Caster, Target)
CancelSpell()
end
This spell will remove itself after 1 sec even if its duration is longer
Notes
The remove function will be called when you cancel the spell early