No categories assigned

LUA:CancelSpell

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