From 6bb3f4f23cfcec32a62c0d01be072d8bda97109d Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Thu, 15 Nov 2007 23:47:09 +0000 Subject: [PATCH] * Fixed an issue where buff filters weren't being considered together --- PerfectRaid_Buffs.lua | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua index 63299f0..c6e141d 100644 --- a/PerfectRaid_Buffs.lua +++ b/PerfectRaid_Buffs.lua @@ -195,14 +195,21 @@ function Buffs:UNIT_AURA(event, unit) local class = select(2, UnitClass(unit)) local conds = self.conditions local group = raidLookup[unit] + if checkcond then + local pass = true + for i,name in pairs(entry.cond) do - if conds[name] and conds[name](unit,class,group) then - if num and num > 1 then - table.insert(work, entry.colortext .. "(" .. num .. ")") - else - table.insert(work, entry.colortext) - end + if conds[name] and not conds[name](unit,class,group) then + pass = false + end + end + + if pass then + if num and num > 1 then + table.insert(work, entry.colortext .. "(" .. num .. ")") + else + table.insert(work, entry.colortext) end end end -- 1.7.9.5