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);
|
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());
|
QueryResult result = CharacterDatabase.PQuery("SELECT matchmaker_rating FROM character_arena_stats WHERE guid='%u' AND slot='%u'", GUID_LOPART(PlayerGuid), GetSlot());
|
||||||
if (result)
|
if (result)
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ class ArenaTeam
|
|||||||
void MemberWon(Player * plr, uint32 againstMatchmakerRating, int32 teamratingchange = 12);
|
void MemberWon(Player * plr, uint32 againstMatchmakerRating, int32 teamratingchange = 12);
|
||||||
int32 LostAgainst(uint32 againstRating);
|
int32 LostAgainst(uint32 againstRating);
|
||||||
void MemberLost(Player * plr, uint32 againstMatchmakerRating, int32 teamratingchange = -12);
|
void MemberLost(Player * plr, uint32 againstMatchmakerRating, int32 teamratingchange = -12);
|
||||||
void OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 teamratingchange = 12);
|
void OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 teamratingchange = -12);
|
||||||
|
|
||||||
void UpdateArenaPointsHelper(std::map<uint32, uint32> & PlayerPoints);
|
void UpdateArenaPointsHelper(std::map<uint32, uint32> & PlayerPoints);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user