mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
SetMacroSpell and SetMacroItem publish a spellbook spell or an item as a macro's display, like 4.3.4: a name that resolves to nothing greys the button, and the claim lasts until the macro's body is edited. Each macro now keeps the unit its spell is aimed at (4.3.4's MACRONODE::m_target): the target those functions name, or the [@unit] of the clause a #showtooltip or /cast line matched. Action::Range redirects IsActionInRange's call to the slot range function and, for a macro slot with a unit, passes that GUID to the engine's range check in place of the selection, as CGActionBar::HasValidTarget does.