From e8244b286276f60ff02950b1c083719bf78b92c0 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 6 Jan 2007 16:58:43 +0000 Subject: [PATCH] Added a "MyGroup" option to the buff editing window, which only checks those in your group --- PerfectRaid_Buffs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {} -- 1.7.9.5