Garr3tth21388@legacy41542057 (talk | contribs) |
m (moved GetMacroSpell to API GetMacroSpell) |
(No difference)
|
Revision as of 11:42, 1 December 2010
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the spell a given macro is set to cast. This function can be used by action bar addons to display dynamic macro icons and tooltips. As a macro's cast sequence changes, this function can be queried to get the next spell that will be cast.
name, rank = GetMacroSpell(slot)
Arguments:
- "slot"
- number - The macro slot to query
Returns:
- name
- The name of the spell the macro is set to cast (string)
- rank
- The rank of the spell, if applicable (string)
Example:
local index = GetMacroIndexByName(spell); if (index) then local spellname, rank = GetMacroSpell(index); spell = spellname; end