From 7078ffdb1aed83f79d30616973a647195d7dcf0c Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 14 Apr 2007 01:20:20 +0000 Subject: [PATCH] * Fix an issue where a debuff doesn't have a type --- PerfectRaid_Buffs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.9.5