-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed SMSG_SPELL_ENERGIZE_LOG structure for 11.0 (#910)
- Loading branch information
1 parent
10cc728
commit c45c3f4
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
WowPacketParserModule.V11_0_0_55666/Parsers/CombatLogHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V11_0_0_55666.Parsers | ||
{ | ||
public static class CombatLogHandler | ||
{ | ||
[Parser(Opcode.SMSG_SPELL_ENERGIZE_LOG)] | ||
public static void HandleSpellEnergizeLog(Packet packet) | ||
{ | ||
packet.ReadPackedGuid128("CasterGUID"); | ||
packet.ReadPackedGuid128("TargetGUID"); | ||
|
||
packet.ReadInt32<SpellId>("SpellID"); | ||
packet.ReadByteE<PowerType>("Type"); | ||
|
||
packet.ReadInt32("Amount"); | ||
packet.ReadInt32("OverEnergize"); | ||
|
||
packet.ResetBitReader(); | ||
|
||
var hasLogData = packet.ReadBit("HasLogData"); | ||
if (hasLogData) | ||
V6_0_2_19033.Parsers.SpellHandler.ReadSpellCastLogData(packet); | ||
} | ||
} | ||
} |