From ce0996195787fbc408f3e008e1301ed64f30054a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 1 Jan 2007 22:44:06 +0000 Subject: [PATCH] * Fixed so class based conditions work properly --- PerfectRaid_Buffs.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua index 57792e1..8ba41d8 100644 --- a/PerfectRaid_Buffs.lua +++ b/PerfectRaid_Buffs.lua @@ -106,10 +106,11 @@ function Buffs:UNIT_AURA(event, unit) end end + local class = select(2, UnitClass(unit)) local conds = self.conditions if checkcond then for i,name in pairs(entry.cond) do - if conds[name] and conds[name](unit) then + if conds[name] and conds[name](unit,class) then if num and num > 1 then table.insert(work, entry.colortext .. "(" .. num .. ")") else -- 1.7.9.5