mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Misc): Remove from LFG/batleground queues when teleported to battleground/LFG dungeon. (#10740)
Players cannot queue up for battleground during LFG dungeon. Players cannot queue up for LFG dungeon during battleground/arena match. Fixes #10635
This commit is contained in:
@@ -438,6 +438,9 @@ public:
|
||||
sBattlegroundMgr->BuildBattlegroundStatusPacket(&data, bg, queueSlot, STATUS_IN_PROGRESS, 0, bg->GetStartTime(), bg->GetArenaType(), teamId);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
|
||||
// Remove from LFG queues
|
||||
sLFGMgr->LeaveAllLfgQueues(player->GetGUID(), false);
|
||||
|
||||
player->SetBattlegroundId(bg->GetInstanceID(), bgTypeId, queueSlot, true, false, teamId);
|
||||
sBattlegroundMgr->SendToBattleground(player, bg->GetInstanceID(), bgTypeId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user