Core/Arena: Add a missing change from revision 6802b3bf07. Also personal rating should now start at 1k again if the team rating is over 1k and a new member joins the team (and the start personal rating is set to 0 in the config).
Fixes issue #4283 --HG-- branch : trunk
This commit is contained in:
@@ -140,7 +140,14 @@ bool ArenaTeam::AddMember(const uint64& PlayerGuid)
|
||||
}
|
||||
|
||||
plMMRating = sWorld.getIntConfig(CONFIG_ARENA_START_MATCHMAKER_RATING);
|
||||
plPRating = sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING);
|
||||
plPRating = 0;
|
||||
|
||||
if (sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING) > 0)
|
||||
plPRating = sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING);
|
||||
else if (GetRating() >= 1000)
|
||||
plPRating = 1000;
|
||||
|
||||
sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING);
|
||||
|
||||
QueryResult result = CharacterDatabase.PQuery("SELECT matchmaker_rating FROM character_arena_stats WHERE guid='%u' AND slot='%u'", GUID_LOPART(PlayerGuid), GetSlot());
|
||||
if (result)
|
||||
|
||||
Reference in New Issue
Block a user