added ability to track overflow debuffs that show in buff slots on bosses in raids

This commit is contained in:
Jrc13245
2025-10-28 19:56:00 -04:00
parent 8be3d7df3a
commit 8fcd17ff53
+19
View File
@@ -753,6 +753,14 @@ function lib:UnitDebuff(unit, id)
if not guid then return nil end
local texture, stacks, dtype, spellID = UnitDebuff(unit, id)
if not texture or not spellID then
texture, stacks, _, spellID = UnitBuff(unit, id)
if texture and spellID and not lib.durations[spellID] then
return nil
end
end
if not texture or not spellID then return nil end
local name = SpellInfo(spellID)
@@ -790,6 +798,17 @@ local function SeedUnit(unit)
end
end
end
for i=1, 32 do
local tex, stacks, _, spellID = UnitBuff(unit, i)
if not tex then break end
if spellID and lib.durations[spellID] then
if not (lib.objects[guid] and lib.objects[guid][spellID]) then
lib:AddEffect(guid, unitName, spellID, lib:GetDuration(spellID), stacks)
end
end
end
end
local ev = CreateFrame("Frame", "CleveRoidsLibDebuffFrame", UIParent)