fix stopmacro and implement skipmacro

This commit is contained in:
Jrc13245
2026-01-15 14:50:55 -05:00
parent c230b1decb
commit 649586c552
4 changed files with 76 additions and 22 deletions
+6 -1
View File
@@ -190,7 +190,7 @@ end
-- /cast hook
CleveRoids.Hooks.CAST_SlashCmd = SlashCmdList.CAST
SlashCmdList.CAST = function(msg)
if CleveRoids.stopMacroFlag then return end
if CleveRoids.stopMacroFlag or CleveRoids.skipMacroFlag then return end
if msg and string.find(msg, "[%[%?!~{]") then
CleveRoids.DoCast(msg)
else
@@ -324,6 +324,11 @@ SlashCmdList.STOPMACRO = function(msg)
CleveRoids.DoStopMacro(msg)
end
SLASH_SKIPMACRO1 = "/skipmacro"
SlashCmdList.SKIPMACRO = function(msg)
CleveRoids.DoSkipMacro(msg)
end
-- QuickHeal with conditionals support (requires QuickHeal addon)
-- Usage: /quickheal [conditionals] [target] [type]
-- Examples: