From da93819c6c51f12f085f68eb250e2296ecf5e20f Mon Sep 17 00:00:00 2001 From: Sattva Date: Mon, 22 May 2023 00:15:11 +0300 Subject: [PATCH] Global - Fix Function IsInLFGQueue Fix checking if player is currently queued for a dungeon. --- Leatrix_Plus.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 36bd3f0..95d05a7 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -404,13 +404,14 @@ end - -- Check if player is in LFG queue (battleground) + -- Check if player is in LFG queue function LeaPlusLC:IsInLFGQueue() - for i = 1, GetMaxBattlefieldID() do - local status = GetBattlefieldStatus(i) - if status == "queued" or status == "confirmed" then + if LeaPlusLC["GameVer"] == "5" then + if GetLFGQueueStats(LE_LFG_CATEGORY_LFD) or GetLFGQueueStats(LE_LFG_CATEGORY_LFR) or GetLFGQueueStats(LE_LFG_CATEGORY_RF) then return true end + else + if MiniMapLFGFrame:IsShown() then return true end end end @@ -1734,7 +1735,7 @@ function LeaPlusLC:FriendCheck(name) end function addon:QUEST_PROGRESS () - if LeaPlusLC["AutomateQuests"] == "Off" then return end + if LeaPlusLC["AutomateQuests"] == "Off" then return end if not self:canAutomate() then return end if IsQuestCompletable() then CompleteQuest()