mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10619] Clarify premade groups mode config option.
Also prevent mark group as premade with 0 time wait. It's any way useless becase at next tick group moved to normal team mode.
This commit is contained in:
parent
099f375961
commit
811a86baf5
4 changed files with 9 additions and 5 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "ArenaTeam.h"
|
||||
#include "Language.h"
|
||||
#include "ScriptCalls.h"
|
||||
#include "World.h"
|
||||
|
||||
void WorldSession::HandleBattlemasterHelloOpcode(WorldPacket & recv_data)
|
||||
{
|
||||
|
|
@ -150,7 +151,8 @@ void WorldSession::HandleBattlemasterJoinOpcode( WorldPacket & recv_data )
|
|||
if (grp->GetLeaderGuid() != _player->GetObjectGuid())
|
||||
return;
|
||||
err = grp->CanJoinBattleGroundQueue(bg, bgQueueTypeId, 0, bg->GetMaxPlayersPerTeam(), false, 0);
|
||||
isPremade = (grp->GetMembersCount() >= bg->GetMinPlayersPerTeam());
|
||||
isPremade = sWorld.getConfig(CONFIG_UINT32_BATTLEGROUND_PREMADE_GROUP_WAIT_FOR_MATCH) &&
|
||||
(grp->GetMembersCount() >= bg->GetMinPlayersPerTeam());
|
||||
}
|
||||
// if we're here, then the conditions to join a bg are met. We can proceed in joining.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue