feat(Core/BG): allow MinPlayersPerTeam override for low-levels (#20083)

This commit is contained in:
Francesco Borzì
2024-09-29 14:07:45 +02:00
committed by GitHub
parent 5a96ce283d
commit 34a3b4ee47
8 changed files with 59 additions and 4 deletions

View File

@@ -146,6 +146,7 @@ Battleground::Battleground()
m_LastResurrectTime = 0;
m_ArenaType = 0;
m_IsArena = false;
m_IsTemplate = true;
m_WinnerId = PVP_TEAM_NEUTRAL;
m_StartTime = 0;
m_ResetStatTimer = 0;
@@ -1822,6 +1823,7 @@ GraveyardStruct const* Battleground::GetClosestGraveyard(Player* player)
void Battleground::SetBracket(PvPDifficultyEntry const* bracketEntry)
{
m_IsTemplate = false;
m_BracketId = bracketEntry->GetBracketId();
SetLevelRange(bracketEntry->minLevel, bracketEntry->maxLevel);
}