Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Core/Config): Adjust arena team defaults for Season 1-5 #18763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/server/game/Battlegrounds/ArenaTeam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ ArenaTeam::ArenaTeam()
Stats.Rating = sWorld->getIntConfig(CONFIG_ARENA_START_RATING);
Stats.WeekWins = 0;
Stats.SeasonWins = 0;

if (sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID) < 6 && sWorld->getIntConfig(CONFIG_ARENA_START_RATING) == 0)
Stats.Rating = 1500;
}

ArenaTeam::~ArenaTeam()
Expand Down Expand Up @@ -127,10 +130,12 @@ bool ArenaTeam::AddMember(ObjectGuid playerGuid)
// Set player's personal rating
uint32 personalRating = 0;

if (sWorld->getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING) > 0)
if (sWorld->getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING) > 0 )
personalRating = sWorld->getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING);
else if (GetRating() >= 1000)
else if (GetRating() >= 1000 && sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID) >= 5)
personalRating = 1000;
else if (sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID) < 6)
personalRating = 1500;

// xinef: sync query
// Try to get player's match maker rating from db and fall back to config setting if not found
Expand Down