* Fix an issue where a debuff doesn't have a type
James Whitehead II [04-14-07 - 01:20]
* Fix an issue where a debuff doesn't have a type
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 89f0e8c..6c08dae 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -126,7 +126,9 @@ function Buffs:UNIT_AURA(event, unit)
local name,rank,texture,count,type = UnitDebuff(unit, i)
if not name and not type then break end
buffcache[name] = (buffcache[name] or 0) + 1
- buffcache[type] = (buffcache[type] or 0) + 1
+ if type then
+ buffcache[type] = (buffcache[type] or 0) + 1
+ end
end
for k,v in pairs(work) do work[k] = nil end