From 2d525b6c1a11ab3ee080c9e6245007b4881a5d9a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 3 Jan 2007 22:35:56 +0000 Subject: [PATCH] Fixed an issue where debuffs would be displayed as multiples when they actually weren't --- PerfectRaid_Buffs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.9.5