From b5a1e5618505f27bc2c51b36e58d1ca1b98e52c4 Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Sat, 7 Jul 2012 14:06:28 +0200 Subject: [PATCH] Fixed GroupTools.IsLFGGroup method (GetLFGMode now requires an argument) --- GroupTools.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GroupTools.lua b/GroupTools.lua index 83c078c..53bbf06 100644 --- a/GroupTools.lua +++ b/GroupTools.lua @@ -83,9 +83,15 @@ end -- @return True if the player is in an LFG group, false otherwise. -- function GT:IsLFGGroup() - local status, _ = GetLFGMode() - if status == "abandonedInDungeon" or status == "lfgparty" then - return true + local statusTable = {} + statusTable[1], _ = GetLFGMode(LE_LFG_CATEGORY_LFD) + statusTable[2], _ = GetLFGMode(LE_LFG_CATEGORY_LFR) + statusTable[3], _ = GetLFGMode(LE_LFG_CATEGORY_RF) + statusTable[4], _ = GetLFGMode(LE_LFG_CATEGORY_SCENARIO) + for _,v in pairs(statusTable) do + if v == "abandonedInDungeon" or v == "lfgparty" then + return true + end end return false end -- 1.7.9.5