Skip to content

Commit

Permalink
Fixed detecting queue pause when a queue entry pops when queued for m…
Browse files Browse the repository at this point in the history
…ultiple battlegrounds
  • Loading branch information
linaori committed Aug 27, 2022
1 parent 3680459 commit 4340732
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QueueTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,11 @@ function Private.DetectQueuePause(previousState, newState, mapName)
local isLeader = IsLeaderOrAssistant('player')
if config.onlyAsLeader and not isLeader then return end

for _, state in pairs(Memory.queueState) do
local otherStatus = state.status
if otherStatus == QueueStatus.Active or otherStatus == QueueStatus.Confirm then return end
end

if config.sendPausedMessage then
local message = Private.TwoLanguages('Queue paused for %s', mapName)
if GetNumGroupMembers() == 0 then
Expand Down

0 comments on commit 4340732

Please sign in to comment.