fix(Core/DK): Don't allow starter dk to queue bg (#2584)

This commit is contained in:
Shard
2020-01-26 16:25:48 +01:00
committed by Stoabrogga
parent 999d588c37
commit 35b6bedd81
2 changed files with 7 additions and 1 deletions

View File

@@ -158,6 +158,9 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket & recvData)
_player->InBattlegroundQueueForBattlegroundQueueType(BATTLEGROUND_QUEUE_3v3) ||
_player->InBattlegroundQueueForBattlegroundQueueType(BATTLEGROUND_QUEUE_5v5)) // can't be already queued for arenas
err = ERR_BATTLEGROUND_QUEUED_FOR_RATED;
// don't let Death Knights join BG queues when they are not allowed to be teleported yet
else if (_player->getClass() == CLASS_DEATH_KNIGHT && _player->GetMapId() == 609 && !_player->IsGameMaster() && !_player->HasSpell(50977))
err = ERR_BATTLEGROUND_NONE;
if (err <= 0)
{