fix(Core): Entering BG whilst in combat (#12770)
This commit is contained in:
parent
0a0072fe0f
commit
431d7d5e4d
1 changed files with 6 additions and 0 deletions
|
|
@ -403,6 +403,12 @@ void WorldSession::HandleBattleFieldPortOpcode(WorldPacket& recvData)
|
|||
return;
|
||||
}
|
||||
|
||||
if (_player->GetCharmGUID() || _player->IsInCombat())
|
||||
{
|
||||
_player->GetSession()->SendNotification(LANG_YOU_IN_COMBAT);
|
||||
return;
|
||||
}
|
||||
|
||||
// get BattlegroundQueue for received
|
||||
BattlegroundTypeId bgTypeId = BattlegroundTypeId(bgTypeId_);
|
||||
BattlegroundQueueTypeId bgQueueTypeId = BattlegroundMgr::BGQueueTypeId(bgTypeId, arenaType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue