From 5efbce1ad460eff5c5a626016c0b77adbcf20bc8 Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Mon, 30 Apr 2012 20:32:04 +0200 Subject: [PATCH] Should now properly count group members. --- GroupTools.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GroupTools.lua b/GroupTools.lua index 0ea847f..089a25d 100644 --- a/GroupTools.lua +++ b/GroupTools.lua @@ -75,7 +75,7 @@ end -- function GT:GetNumGroupMembers() if not self:IsGroup() then return 0 end - if UnitInRaid("player") then + if self:IsRaid() then return GetNumRaidMembers() else return GetNumPartyMembers() + 1 -- We need to add one because it won't count the player @@ -90,8 +90,8 @@ end function GT:IsGroupFull() -- We need to add 1 to the number because it doesn't count the player. local num = self:GetNumGroupMembers() - local max = self.RaidMax - if self:IsGroup() then max = self.PartyMax end + local max = self.PartyMax + if self:IsRaid() then max = self.RaidMax end if num >= max then return true end return false end -- 1.7.9.5