Quantcast

Fixed an issue where debuffs would be displayed as multiples when they actually weren't

James Whitehead II [01-03-07 - 22:35]
Fixed an issue where debuffs would be displayed as multiples when they actually weren't
Filename
PerfectRaid_Buffs.lua
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 4ea38aa..9e3a596 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -92,8 +92,8 @@ function Buffs:UNIT_AURA(event, unit)

 	for i=1,40 do
 		local name,rank,texture,count,type = UnitDebuff(unit, i)
-		if type then buffcache[type] = (buffcache[type] or 0) + 1 end
-		if not name then break end
+		if type then name = type end
+		if not name and not type then break end
 		buffcache[name] = (buffcache[name] or 0) + 1
 	end