Method Unit:GetCurrentSpell [-] [+]
Returns the currently casted Spell of given type or nil.
CurrentSpellTypes | ID |
---|---|
CURRENT_MELEE_SPELL | 0 |
CURRENT_GENERIC_SPELL | 1 |
CURRENT_CHANNELED_SPELL | 2 |
CURRENT_AUTOREPEAT_SPELL | 3 |
Synopsis
castedSpell = Unit:GetCurrentSpell( spellType )
Arguments
CurrentSpellTypes spellType
- See method description.
Returns
Spell castedSpell
- See method description.