mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user