mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
C_Macro.SetMacroDisplay(macroSlot, value [, unit]) takes the unit the button's range check uses, so a publisher's [@unit] reaches the range check as SetMacroSpell's target does. The token stays a token: each lookup resolves it again, so the range follows a new mouseover, focus or target with no republish. A token that names no unit leaves the target in charge. The engine's resolver vets the unit at publish and raises its "Unknown unit name" error for anything else, as UnitExists does. It tells a token's family from its spelling alone, so a token that passes once never raises at a later lookup. The unit is ignored for false and for an empty value, and a publish that changes only the unit updates it.