Skip to content

Commit

Permalink
Fixed SMSG_SPELL_ENERGIZE_LOG structure for 11.0 (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliminationzx authored Jan 17, 2025
1 parent 10cc728 commit c45c3f4
Showing 1 changed file with 28 additions and 0 deletions.
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);
}
}
}

0 comments on commit c45c3f4

Please sign in to comment.