* Fixed an issue with debuffs, should work correctly now.
James Whitehead II [04-09-07 - 20:11]
* Fixed an issue with debuffs, should work correctly now.
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index a10b7fe..1c73ba6 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -124,9 +124,9 @@ function Buffs:UNIT_AURA(event, unit)
for i=1,40 do
local name,rank,texture,count,type = UnitDebuff(unit, i)
- if type then name = type end
if not name and not type then break end
buffcache[name] = (buffcache[name] or 0) + 1
+ buffcache[type] = (buffcache[type] or 0) + 1
end
for k,v in pairs(work) do work[k] = nil end