[11350] Revert "[11349] Instead group online players use arena team full list for claculate avg. personal rating."

This reverts commit aae93a675ca4dc4a936a1f90ad4a67f91161f697.
This commit is contained in:
VladimirMangos 2011-04-14 14:54:36 +04:00
parent ea1076899b
commit 0912c17cee
4 changed files with 12 additions and 12 deletions

View file

@ -699,7 +699,17 @@ void WorldSession::HandleBattlemasterJoinArena( WorldPacket & recv_data )
arenaRating = at->GetRating();
// the arena team id must match for everyone in the group
// get the personal ratings for queue
uint32 avg_pers_rating = at->GetAvgPersonalRating();
uint32 avg_pers_rating = 0;
for(GroupReference *itr = grp->GetFirstMember(); itr != NULL; itr = itr->next())
{
Player *member = itr->getSource();
// calc avg personal rating
avg_pers_rating += member->GetArenaPersonalRating(arenaslot);
}
if (arenatype)
avg_pers_rating /= arenatype;
// if avg personal rating is more than 150 points below the teams rating, the team will be queued against an opponent matching or similar to the average personal rating
if (avg_pers_rating + 150 < arenaRating)