feat(Core): Add config for legacy arena team start rating. (#22080)

Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
Benjamin Jackson
2025-07-11 07:30:20 -04:00
committed by GitHub
parent 1679a9ff42
commit bae4dd8ccf
4 changed files with 13 additions and 2 deletions

View File

@@ -36,7 +36,9 @@ ArenaTeam::ArenaTeam()
Stats.WeekGames = 0;
Stats.SeasonGames = 0;
Stats.Rank = 0;
Stats.Rating = sWorld->getIntConfig(CONFIG_ARENA_START_RATING);
Stats.Rating = (sArenaSeasonMgr->GetCurrentSeason() < 6)
? sWorld->getIntConfig(CONFIG_LEGACY_ARENA_START_RATING)
: sWorld->getIntConfig(CONFIG_ARENA_START_RATING);
Stats.WeekWins = 0;
Stats.SeasonWins = 0;
}