Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Server/Arena: Drop Some Obsolete Arena Packets.
Browse files Browse the repository at this point in the history
Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information
AriDEV committed May 3, 2019
1 parent 4eeb9ee commit a7ec26e
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 448 deletions.
18 changes: 0 additions & 18 deletions src/server/game/Battlegrounds/ArenaTeam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,24 +472,6 @@ void ArenaTeam::NotifyStatsChanged()
SendStats(player->GetSession());
}

void ArenaTeam::Inspect(WorldSession* session, uint64 guid)
{
ArenaTeamMember* member = GetMember(guid);
if (!member)
return;

WorldPacket data(MSG_INSPECT_ARENA_TEAMS, 8+1+4*6);
data << uint64(guid); // player guid
data << uint8(GetSlot()); // slot (0...2)
data << uint32(GetId()); // arena team id
data << uint32(Stats.Rating); // rating
data << uint32(Stats.SeasonGames); // season played
data << uint32(Stats.SeasonWins); // season wins
data << uint32(member->SeasonGames); // played (count of all games, that the inspected member participated...)
data << uint32(member->PersonalRating); // personal rating
session->SendPacket(&data);
}

void ArenaTeamMember::ModifyPersonalRating(Player* player, int32 mod, uint32 type)
{
if (int32(PersonalRating) + mod < 0)
Expand Down
1 change: 0 additions & 1 deletion src/server/game/Battlegrounds/ArenaTeam.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ class ArenaTeam
void Roster(WorldSession* session);
void Query(WorldSession* session);
void SendStats(WorldSession* session);
void Inspect(WorldSession* session, uint64 guid);

static int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
static int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
Expand Down

0 comments on commit a7ec26e

Please sign in to comment.