Skip to content

Commit

Permalink
NPCBots: correct merge error from 80e1dbe
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Oct 6, 2024
1 parent 38c1148 commit 0091b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/game/Handlers/BattleGroundHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket& recvData)
else
{
Group* grp = _player->GetGroup();
//npcbot: check premade for bots
if (isPremade && !BotMgr::IsNpcBotsPremadeEnabled() && grp->GetFirstBotMember() != nullptr)
isPremade = false;
//end npcbot

// no group or not a leader
if (!grp || grp->GetLeaderGUID() != _player->GetGUID())
Expand Down Expand Up @@ -295,6 +291,10 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket& recvData)
}

isPremade = (grp->GetMembersCount() >= bg->GetMinPlayersPerTeam() && bgTypeId != BATTLEGROUND_RB);
//npcbot: check premade for bots
if (isPremade && !BotMgr::IsNpcBotsPremadeEnabled() && grp->GetFirstBotMember() != nullptr)
isPremade = false;
//end npcbot
uint32 avgWaitTime = 0;

GroupQueueInfo* ginfo = bgQueue.AddGroup(_player, grp, bgTypeId, bracketEntry, 0, false, isPremade, 0, 0);
Expand Down

0 comments on commit 0091b43

Please sign in to comment.