Skip to content

Commit

Permalink
Fix the queue timer not stopping when entering a random bg.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Nov 1, 2016
1 parent bbe5413 commit 27ce194
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,15 @@ do -- estimated wait timer and port timer
end
end
elseif status == "active" then -- Inside BG
self:StopBar(map)
-- We can't directly call :StopBar(map) as it doesn't work for random BGs.
-- A random BG will adopt the zone name when it changes to "active" E.g. Random Battleground > Arathi Basin
for bar in next, activeBars do
local id = bar:Get("capping:queueid")
if id == queueId then
bar:Stop()
break
end
end
elseif status == "none" then -- Leaving queue
cleanupQueue()
end
Expand Down

0 comments on commit 27ce194

Please sign in to comment.