* Fixed so class based conditions work properly
James Whitehead II [01-01-07 - 22:44]
* Fixed so class based conditions work properly
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