From 6649656d822b2d73e7fcd089a211cebda40f799e Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 28 Feb 2026 22:12:51 +0100 Subject: [PATCH] got rid of more superwow checks, we have nampower now! --- libs/libdebuff.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index 25a0d8dd..bd20f0d1 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -424,7 +424,7 @@ local dispelTypeMap = { -- Get current debuff state directly from WoW via GetUnitField -- Returns: { [displaySlot] = {auraSlot, spellId, spellName, stacks, texture, dtype} } local function GetDebuffSlotMap(guid) - if not guid or not GetUnitField or not SpellInfo then + if not guid or not GetUnitField then return nil end @@ -1275,9 +1275,13 @@ if hasNampower then end if numMissed > 0 or numHit == 0 then return end - if not SpellInfo then return end - - local spellName, spellRankString = SpellInfo(spellId) + + local spellName, spellRankString + if SpellInfo then + spellName, spellRankString = SpellInfo(spellId) + elseif GetSpellRecField then + spellName = GetSpellRecField(spellId, "name") + end if not spellName then return end local castRank = 0 @@ -1411,10 +1415,10 @@ if hasNampower then local durationMs = arg8 local auraCapStatus = arg9 - if not SpellInfo or not spellId then return end + if not spellId then return end if not targetGuid or targetGuid == "" or targetGuid == "0x0000000000000000" then return end - local spellName = SpellInfo(spellId) + local spellName = SpellInfo and SpellInfo(spellId) or (GetSpellRecField and GetSpellRecField(spellId, "name")) if not spellName then return end -- Deduplicate: Ignore if we processed this exact cast recently (within 100ms)