@@ -98,6 +98,7 @@ public static void HandlePetSpells(Packet packet)
9898 }
9999
100100 [ HasSniffData ]
101+ [ Parser ( Opcode . SMSG_AURA_UPDATE , ClientBranch . Classic ) ]
101102 [ Parser ( Opcode . SMSG_AURA_UPDATE , ClientBranch . TBC ) ]
102103 public static void HandleAuraUpdate ( Packet packet )
103104 {
@@ -134,7 +135,7 @@ public static void HandleAuraUpdate(Packet packet)
134135 packet . ResetBitReader ( ) ;
135136
136137 var hasCastUnit = packet . ReadBit ( "HasCastUnit" , i ) ;
137- var hasCastItem = ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) && packet . ReadBit ( "HasCastItem" , i ) ;
138+ var hasCastItem = ( ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) || ClientVersion . AddedInVersion ( ClientBranch . Classic , ClientVersionBuild . V1_15_8_63829 ) ) && packet . ReadBit ( "HasCastItem" , i ) ;
138139 var hasDuration = packet . ReadBit ( "HasDuration" , i ) ;
139140 var hasRemaining = packet . ReadBit ( "HasRemaining" , i ) ;
140141
@@ -235,10 +236,7 @@ public static void ReadCreatureImmunities(Packet packet, params object[] idx)
235236 public static void ReadSpellHealPrediction ( Packet packet , params object [ ] idx )
236237 {
237238 packet . ReadInt32 ( "Points" , idx ) ;
238- if ( ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) )
239- packet . ReadInt32 ( "Type" , idx ) ;
240- else
241- packet . ReadByte ( "Type" , idx ) ;
239+ packet . ReadInt32 ( "Type" , idx ) ;
242240 packet . ReadPackedGuid128 ( "BeaconGUID" , idx ) ;
243241 }
244242
@@ -252,18 +250,12 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData packetSpel
252250 {
253251 packet . ResetBitReader ( ) ;
254252
255- if ( ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) )
256- packet . ReadUInt32E < TargetFlag > ( "Flags" , idx ) ;
257- else
258- packet . ReadBitsE < TargetFlag > ( "Flags" , 28 , idx ) ;
253+ packet . ReadUInt32E < TargetFlag > ( "Flags" , idx ) ;
259254
260- if ( ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) )
261- {
262- var targetUnit = packet . ReadPackedGuid128 ( "Unit" , idx ) ;
263- if ( packetSpellData != null )
264- packetSpellData . TargetUnit = targetUnit ;
265- packet . ReadPackedGuid128 ( "Item" , idx ) ;
266- }
255+ var targetUnit = packet . ReadPackedGuid128 ( "Unit" , idx ) ;
256+ if ( packetSpellData != null )
257+ packetSpellData . TargetUnit = targetUnit ;
258+ packet . ReadPackedGuid128 ( "Item" , idx ) ;
267259
268260 if ( ClientVersion . AddedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) )
269261 {
@@ -277,14 +269,6 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData packetSpel
277269 var hasMapID = packet . ReadBit ( "hasMapID " , idx ) ;
278270 var nameLength = packet . ReadBits ( 7 ) ;
279271
280- if ( ClientVersion . RemovedInVersion ( ClientBranch . TBC , ClientVersionBuild . V2_5_5_64796 ) )
281- {
282- var targetUnit = packet . ReadPackedGuid128 ( "Unit" , idx ) ;
283- if ( packetSpellData != null )
284- packetSpellData . TargetUnit = targetUnit ;
285- packet . ReadPackedGuid128 ( "Item" , idx ) ;
286- }
287-
288272 if ( hasSrcLoc )
289273 ReadLocation ( packet , idx , "SrcLocation" ) ;
290274
@@ -438,5 +422,12 @@ public static void HandleSpellGo(Packet packet)
438422 if ( hasLog )
439423 ReadSpellCastLogData ( packet , "LogData" ) ;
440424 }
425+
426+ [ Parser ( Opcode . SMSG_SPELL_START , ClientBranch . Classic ) ]
427+ [ Parser ( Opcode . SMSG_SPELL_START , ClientBranch . TBC ) ]
428+ public static void HandleSpellStart ( Packet packet )
429+ {
430+ ReadSpellCastData ( packet , "Cast" ) ;
431+ }
441432 }
442433}
0 commit comments