From bb7cd247618870589fcb74063fb8bdc1f8caa104 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 16 Nov 2025 17:39:16 +0000 Subject: [PATCH] Fix nil comparison error in spell_tracking cleanup loop BUGFIX: Core.lua:2253 attempt to compare nil with number The cleanup loop was checking 'if time > cast.expires' but some entries in spell_tracking (like combo tracking data) don't have an expires field. Added nil check: 'if cast.expires and time > cast.expires' This prevents errors when combo tracking data is in spell_tracking without an expiration time. --- Core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core.lua b/Core.lua index 2321aba..df04981 100644 --- a/Core.lua +++ b/Core.lua @@ -2250,7 +2250,7 @@ function CleveRoids.OnUpdate(self) end for guid,cast in pairs(CleveRoids.spell_tracking) do - if time > cast.expires then + if cast.expires and time > cast.expires then CleveRoids.spell_tracking[guid] = nil end end