Returns information about the spell cast by a macro. If a macro contains conditional, random, or sequence commands, this function returns the spell which would currently be cast if the macro were run.
See also Macro functions.
Signature:
name, rank, spellID = GetMacroSpell(index) or GetMacroSpell("name")
Arguments:
index- Index of a macro (number, macroID)name- Name of a macro (string)
Returns:
name- Name of the spell (string)rank- Secondary text associated with the spell (e.g. "Rank 4", "Racial") (string)spellID- The spellID of the spell (number)
Examples:
CreateMacro("fort",1,"/cast [party] Prayer of Fortitude ; [noparty] Power Word: Fortitude")
-- when in a party:
GetMacroSpell("fort")
-- returns "Prayer of Fortitude", "", 43949
-- when not in combat:
GetMacroSpell("fort")
-- returns "Power Word: Fortitude", "", 21562