Quantcast

Should now properly count group members.

F16Gaming [04-30-12 - 18:32]
Should now properly count group members.
Filename
GroupTools.lua
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