mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[11349] Instead group online players use arena team full list for claculate avg. personal rating.
This commit is contained in:
parent
531103b9e5
commit
9c34efec41
4 changed files with 12 additions and 12 deletions
|
|
@ -540,6 +540,15 @@ bool ArenaTeam::HaveMember(ObjectGuid guid) const
|
|||
return false;
|
||||
}
|
||||
|
||||
uint32 ArenaTeam::GetAvgPersonalRating() const
|
||||
{
|
||||
uint32 rating = 0;
|
||||
for(MemberList::const_iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
|
||||
rating += itr->personal_rating;
|
||||
|
||||
return rating / m_Type;
|
||||
}
|
||||
|
||||
uint32 ArenaTeam::GetPoints(uint32 MemberRating)
|
||||
{
|
||||
// returns how many points would be awarded with this team type with this rating
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue