@@ -6,6 +6,13 @@ namespace WowPacketParserModule.V3_4_0_45166.Parsers
66{
77 public static class BattlegroundHandler
88 {
9+ public static void ReadHonorData ( Packet packet , params object [ ] idx )
10+ {
11+ packet . ReadUInt32 ( "HonorKills" , idx ) ;
12+ packet . ReadUInt32 ( "Deaths" , idx ) ;
13+ packet . ReadUInt32 ( "ContributionPoints" , idx ) ;
14+ }
15+
916 public static void ReadRatedPvpBracketInfo ( Packet packet , params object [ ] idx )
1017 {
1118 packet . ReadInt32 ( "PersonalRating" , idx ) ;
@@ -61,8 +68,16 @@ public static void ReadPvPMatchPlayerStatistics(Packet packet, params object[] i
6168 var statsCount = packet . ReadUInt32 ( "StatsCount" , idx ) ;
6269 packet . ReadInt32 ( "PrimaryTalentTree" , idx ) ;
6370 packet . ReadByteE < Gender > ( "Sex" , idx ) ;
64- packet . ReadInt32E < Race > ( "Race" , idx ) ;
65- packet . ReadInt32E < Class > ( "Class" , idx ) ;
71+ if ( ClientVersion . AddedInVersion ( ClientVersionBuild . V3_4_4_59817 ) )
72+ {
73+ packet . ReadByteE < Race > ( "Race" , idx ) ;
74+ packet . ReadByteE < Class > ( "Class" , idx ) ;
75+ }
76+ else
77+ {
78+ packet . ReadInt32E < Race > ( "Race" , idx ) ;
79+ packet . ReadInt32E < Class > ( "Class" , idx ) ;
80+ }
6681 packet . ReadInt32 ( "CreatureID" , idx ) ;
6782 packet . ReadInt32 ( "HonorLevel" , idx ) ;
6883 packet . ReadInt32 ( "Role" , idx ) ;
@@ -84,7 +99,7 @@ public static void ReadPvPMatchPlayerStatistics(Packet packet, params object[] i
8499 packet . ResetBitReader ( ) ;
85100
86101 if ( hasHonor )
87- V6_0_2_19033 . Parsers . BattlegroundHandler . ReadHonorData ( packet , "Honor" ) ;
102+ ReadHonorData ( packet , "Honor" ) ;
88103
89104 if ( hasPreMatchRating )
90105 packet . ReadUInt32 ( "PreMatchRating" , idx ) ;
@@ -156,7 +171,12 @@ public static void HandlePvPLogData(Packet packet)
156171 }
157172
158173 if ( hasWinner )
159- packet . ReadByte ( "Winner" ) ;
174+ {
175+ if ( ClientVersion . AddedInVersion ( ClientVersionBuild . V3_4_4_59817 ) )
176+ packet . ReadUInt32 ( "Winner" ) ;
177+ else
178+ packet . ReadByte ( "Winner" ) ;
179+ }
160180
161181 for ( int i = 0 ; i < statisticsCount ; i ++ )
162182 ReadPvPMatchPlayerStatistics ( packet , "Statistics" , i ) ;
0 commit comments