mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The secure "macro" action read both `macrotext` (raw text) and the deprecated `macro` (saved-macro name) into one buffer and ran whichever through the global RunMacro. RunMacro is name-based -- stock resolves an index, and SuperCleveRoidMacros' RunMacro calls GetMacroIndexByName -- so a macrotext value like "/cast [hp:<90] Holy Light" resolved to no macro and silently did nothing. Because the global existed, the native fallback never ran. Split the two by their real semantics: macrotext runs through the chat parser (RunMacroTextC), so each line dispatches via SlashCmdList and picks up addon slash hooks like SuperCleveRoidMacros' conditional /cast; the name form keeps preferring RunMacro. Fixes click-cast macros with conditionals.