Fix combo tracking commands - remove load-time existence checks

The combotrack/comboclear commands were checking if functions existed at
file load time, but ComboPointTracker.lua loads after Core.lua, so the
checks always failed. Removed the checks since by runtime (when the user
executes the command) all files will be loaded and functions will exist.

Fixes "Combo point tracking not available" message.
This commit is contained in:
Claude
2025-11-16 15:44:24 +00:00
parent 4cf8e07a17
commit 3d6f03336c
+4 -12
View File
@@ -3270,23 +3270,15 @@ SlashCmdList["CLEVEROID"] = function(msg)
-- combotrack (show combo point tracking info)
if cmd == "combotrack" or cmd == "combo" then
if CleveRoids.ShowComboTracking then
CleveRoids.ShowComboTracking()
else
CleveRoids.Print("Combo point tracking not available")
end
CleveRoids.ShowComboTracking()
return
end
-- comboclear (clear combo tracking data)
if cmd == "comboclear" then
if CleveRoids.ComboPointTracking then
CleveRoids.ComboPointTracking = {}
CleveRoids.ComboPointTracking.byID = {}
CleveRoids.Print("Combo point tracking data cleared")
else
CleveRoids.Print("Combo point tracking not available")
end
CleveRoids.ComboPointTracking = {}
CleveRoids.ComboPointTracking.byID = {}
CleveRoids.Print("Combo point tracking data cleared")
return
end