Skip to content

Commit

Permalink
fix: support Battleground.Override.LowLevels.MinPlayers (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi authored Sep 29, 2024
1 parent ffe8f76 commit d2841f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CFBG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "CFBG.h"
#include "BattlegroundMgr.h"
#include "BattlegroundUtils.h"
#include "Chat.h"
#include "Config.h"
#include "Containers.h"
Expand Down Expand Up @@ -879,7 +880,7 @@ void CFBG::SendMessageQueue(BattlegroundQueue* bgQueue, Battleground* bg, PvPDif
auto bgName = bg->GetName();
uint32 q_min_level = std::min(bracketEntry->minLevel, (uint32)80);
uint32 q_max_level = std::min(bracketEntry->maxLevel, (uint32)80);
uint32 MinPlayers = bg->GetMinPlayersPerTeam() * 2;
uint32 MinPlayers = GetMinPlayersPerTeam(bg, bracketEntry) * 2;
uint32 qTotal = bgQueue->GetPlayersCountInGroupsQueue(bracketId, (BattlegroundQueueGroupTypes)BG_QUEUE_CFBG);

if (sWorld->getBoolConfig(CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_PLAYERONLY))
Expand Down

0 comments on commit d2841f2

Please sign in to comment.