Skip to content

Commit

Permalink
Additions for 4.4.0 CMSG_PET_ACTION
Browse files Browse the repository at this point in the history
  • Loading branch information
funjoker committed Sep 13, 2024
1 parent 4e860bb commit 949a2e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WowPacketParserModule.V4_4_0_54481/Parsers/PetHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static void ReadPetAction(Packet packet, params object[] indexes)
var action = packet.ReadUInt32();
var value = action & 0x7FFFFF;
var type = (action >> 23) & 0x1F;
var flags = action & 0xF800000;

switch (type)
{
Expand All @@ -66,16 +67,19 @@ public static void ReadPetAction(Packet packet, params object[] indexes)
case 17:
{
packet.AddValue("SpellID", StoreGetters.GetName(StoreNameType.Spell, (int)value), indexes);
packet.AddValue("Flags", (PetModeFlags)flags, indexes);
break;
}
case 6:
{
packet.AddValue("ReactState", (ReactState)value, indexes);
packet.AddValue("Flags", (PetModeFlags)flags, indexes);
break;
}
case 7:
{
packet.AddValue("CommandState", (CommandState)value, indexes);
packet.AddValue("Flags", (PetModeFlags)flags, indexes);
break;
}
}
Expand Down

0 comments on commit 949a2e4

Please sign in to comment.