From 1088dedd9b8d9c5adc679636774b455ef85b1264 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Thu, 5 Feb 2026 05:17:16 +0100 Subject: [PATCH] - missing nil value check fix - missing nil value check fix --- libs/libdebuff.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index a31763f2..eb15d10c 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -1551,9 +1551,13 @@ if hasNampower then removedCasterGuid = ownership.casterGuid end - -- Clear both mappings - slotOwnership[guid][foundAuraSlot] = nil - displayToAura[guid][displaySlot] = nil + -- Clear both mappings (with nil-checks) + if slotOwnership[guid] then + slotOwnership[guid][foundAuraSlot] = nil + end + if displayToAura[guid] then + displayToAura[guid][displaySlot] = nil + end if debugStats.enabled and IsCurrentTarget(guid) then DEFAULT_CHAT_FRAME:AddMessage(string.format("%s |cffff9900[SLOT CLEARED]|r aura=%d %s wasOurs=%s caster=%s",