fix lower rank spells showing as refreshing higher ranks in pfui. further improve debuff duration handling.

This commit is contained in:
Jrc13245
2025-11-30 19:25:19 -05:00
parent 42522cfd18
commit ce017f5832
3 changed files with 317 additions and 31 deletions
+12 -1
View File
@@ -964,7 +964,18 @@ function CleveRoids.ValidateUnitDebuff(unit, args)
-- FALLBACK: If not found in tracking table (e.g., shared debuff from another player),
-- scan actual debuffs on target using UnitDebuff()
if not found and CleveRoids.hasSuperwow then
-- IMPORTANT: Skip this fallback for personal debuffs - they should only match if player cast them
local isPersonalDebuff = false
if table.getn(matchingSpellIDs) > 0 then
for _, spellID in ipairs(matchingSpellIDs) do
if CleveRoids.libdebuff:IsPersonalDebuff(spellID) then
isPersonalDebuff = true
break
end
end
end
if not found and not isPersonalDebuff and CleveRoids.hasSuperwow then
-- Scan debuff slots
for i = 1, 16 do
local tex, debuffStacks, _, debuffSpellID = UnitDebuff(unit, i)