Quantcast

* Fixed an issue where buff filters weren't being considered together

James Whitehead II [11-15-07 - 23:47]
* Fixed an issue where buff filters weren't being considered together
Filename
PerfectRaid_Buffs.lua
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