From 72c5138dcb180fbca33121504281d16cc6c50b6e Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Mon, 24 Oct 2011 00:37:11 +0200 Subject: [PATCH] GroupTools.IsGroupFull updated --- GroupTools.lua | 13 +++++++++---- docs/files/GroupTools.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/GroupTools.lua b/GroupTools.lua index 490fee6..698f5ae 100644 --- a/GroupTools.lua +++ b/GroupTools.lua @@ -20,11 +20,16 @@ local C = Command --- Table containing all GroupTools methods. --- This is referenced as "GT" in GroupTools.lua. +-- This is referenced "GT" in GroupTools.lua. -- @name Command.GroupTools -- @class table +-- @field PartyMax Defined max value for party members. +-- @field RaidMax Defined max value for raid members. -- -C.GroupTools = {} +C.GroupTools = { + PartyMax = 5, + RaidMax = 40 +} local GT = C.GroupTools @@ -65,12 +70,12 @@ end -- function GT:IsGroupFull() local num = 0 - local max = 40 + local max = self.RaidMax if self:IsRaid() then num = GetNumRaidMembers() elseif self:IsGroup() then num = GetNumPartyMembers() - max = 5 + max = self.PartyMax end if num >= max then return true end return false diff --git a/docs/files/GroupTools.html b/docs/files/GroupTools.html index bd33ccb..9b20a80 100644 --- a/docs/files/GroupTools.html +++ b/docs/files/GroupTools.html @@ -151,6 +151,16 @@ +

Tables

+ + + + + + + +
Command.GroupToolsTable containing all GroupTools methods.
+
@@ -363,6 +373,32 @@ Check if the unit is raid leader or assistant. +

Tables

+
+ +
Command.GroupTools
+
Table containing all GroupTools methods. This is referenced "GT" in GroupTools.lua.

+ + +

Fields:

+
    + +
  • + PartyMax: Defined max value for party members. +
  • + +
  • + RaidMax: Defined max value for raid members. +
  • + +
+ + +
+ + +
+ -- 1.7.9.5