fix cleartarget conditional

This commit is contained in:
Jrc13245
2026-03-07 16:34:26 -05:00
parent bed3bb7f1a
commit 470ad3fd24
2 changed files with 30 additions and 0 deletions
+12
View File
@@ -134,6 +134,18 @@ SlashCmdList.CLEARTARGET = ClearTarget
-- HOOK DEFINITIONS START
----------------------------------
-- /cleartarget hook
CleveRoids.Hooks.CLEARTARGET_SlashCmd = SlashCmdList.CLEARTARGET
SlashCmdList.CLEARTARGET = function(msg)
if CleveRoids.stopMacroFlag then return end
msg = msg or ""
if string.find(msg, "%[") then
CleveRoids.DoConditionalClearTarget(msg)
else
CleveRoids.Hooks.CLEARTARGET_SlashCmd()
end
end
-- /startattack hook
CleveRoids.Hooks.STARTATTACK_SlashCmd = SlashCmdList.STARTATTACK
SlashCmdList.STARTATTACK = function(msg)