Added a "MyGroup" option to the buff editing window, which only checks those in your group
James Whitehead II [01-06-07 - 16:58]
Added a "MyGroup" option to the buff editing window, which only checks those in your group
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index b7bd6e6..bfeb303 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -81,6 +81,7 @@ function Buffs:RAID_ROSTER_UPDATE()
for i=1,GetNumRaidMembers() do
local group = select(3, GetRaidRosterInfo(i))
local unit = raidLookup[i]
+ if UnitIsUnit(unit, "player") then raidLookup.player = group end
raidLookup[unit] = group
end
end
@@ -462,7 +463,7 @@ function Buffs:CreateEditFrame(parent)
checks[19]:SetPoint("TOPLEFT", checks[13], "BOTTOMLEFT", 0, -10)
checks[19]:Show()
- for i=20,20 do
+ for i=20,21 do
checks[i] = makeCheck(self.conditions[i])
checks[i]:SetPoint("TOPLEFT", checks[i-1], "TOPRIGHT", 60, 0)
checks[i]:Show()
@@ -667,6 +668,7 @@ Buffs.conditions = {
["Group 6"] = function(u,c,g) return g == 6 end,
["Group 7"] = function(u,c,g) return g == 7 end,
["Group 8"] = function(u,c,g) return g == 8 end,
+ ["MyGroup"] = function(u,c,g) return g == raidLookup.player end,
}
local work = {}