API GetMacroSpell

Returns information about the spell a given macro is set to cast. id = GetMacroSpell(slot or macroName)

Arguments
The sole argument has two forms:
 * slot : - The macro slot to query.
 * macroName : - The name of the macro to query.

Returns

 * id : - The ability's spellId.

Details

 * Action-bar addons use this function to display dynamic macro icons, tooltips and glow effects. As a macro's cast sequence changes, this function indicates which will be cast next.