Gaming
 

IsCasting.GetSpellName

From WoWWiki

This article is a part of the documentation of the IsCasting function library

Usage:

IsCasting.GetSpellName()

EX:

message(IsCasting.GetSpellName())

Returns:

spellName - name of current or last spell cast, nil if nothing has been cast yet (string)

Note:

Can Be used in Sea.wow.spellbook.GetSpellIDByName to get more spell data if the spell is in your spellbook.
EX:
local id = Sea.wow.spellbook.GetSpellIDByName( IsCasting.GetSpellName(), BOOKTYPE_SPELL,  IsCasting.GetSpellRank() )