remove cleartarget conditional, update stopattack

This commit is contained in:
Jrc13245
2026-03-07 11:00:29 -05:00
parent 13cde9d2ef
commit 348c621c5d
3 changed files with 36 additions and 102 deletions
-13
View File
@@ -134,19 +134,6 @@ SlashCmdList.CLEARTARGET = ClearTarget
-- HOOK DEFINITIONS START
----------------------------------
-- /cleartarget hook
CleveRoids.Hooks.CLEARTARGET_SlashCmd = SlashCmdList.CLEARTARGET
SlashCmdList.CLEARTARGET = function(msg)
msg = msg or ""
if string.find(msg, "%[") then
-- If conditionals are present, let the function handle it.
CleveRoids.DoConditionalClearTarget(msg)
else
-- If no conditionals, run the original command.
CleveRoids.Hooks.CLEARTARGET_SlashCmd()
end
end
-- /startattack hook
CleveRoids.Hooks.STARTATTACK_SlashCmd = SlashCmdList.STARTATTACK
SlashCmdList.STARTATTACK = function(msg)