mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix nampower errors
This commit is contained in:
+16
@@ -99,10 +99,26 @@ SlashCmdList.STOPATTACK = StopAttack
|
||||
SLASH_STOPCASTING1 = "/stopcasting"
|
||||
SlashCmdList.STOPCASTING = SpellStopCasting
|
||||
|
||||
SLASH_CLEARTARGET1 = "/cleartarget"
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user