API SetMacroSpell

Changes the spell used for dynamic feedback for a macro. SetMacroSpell(index, spell [, target])  or   SetMacroSpell(name, spell [, target])

Arguments

 * index : - Index of the macro, using the values 1-36 for the first page and 37-54 for the second.
 * name : - Name of a macro.
 * spell : - Localized name of a spell to assign.
 * target : - UnitId to assign (for range indication).

Details

 * When assigned to an action button, macros can provide dynamic feedback such as range indication, cooldown, and charges/quantity remaining.
 * Normally, this dynamic feedback corresponds the action that the macro will take; however, this function directs the macro to provide feedback based on a particular spell instead.
 * This only changes the visual cues appearing on the action buttons, but not the actual logic. Clicking an action button executes the macro as written.