Quantcast

Fixed GroupTools.IsLFGGroup method (GetLFGMode now requires an argument)

F16Gaming [07-07-12 - 12:06]
Fixed GroupTools.IsLFGGroup method (GetLFGMode now requires an argument)
Filename
GroupTools.lua
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