mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -187,6 +187,10 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket& recvData)
|
||||
{
|
||||
err = ERR_BATTLEGROUND_NONE;
|
||||
}
|
||||
else if (!_player->GetBGAccessByLevel(bgTypeId))
|
||||
{
|
||||
err = ERR_BATTLEGROUND_NONE;
|
||||
}
|
||||
|
||||
if (err <= 0)
|
||||
{
|
||||
@@ -236,6 +240,10 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket& recvData)
|
||||
{
|
||||
err = ERR_BATTLEGROUND_NONE;
|
||||
}
|
||||
else if (!member->GetBGAccessByLevel(bgTypeId))
|
||||
{
|
||||
err = ERR_BATTLEGROUND_JOIN_TIMED_OUT;
|
||||
}
|
||||
|
||||
if (err < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user