Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions WowPacketParserModule.V11_0_0_55666/Parsers/CombatLogHandler.cs
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);
}
}
}
Loading