Skip to content

Commit

Permalink
Fixed SrcLocation/DstLocation formatting in spell cast packets
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Mar 24, 2024
1 parent be0c8b2 commit 3963ddf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions WowPacketParserModule.V1_13_2_31446/Parsers/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData packetSpel
packet.ReadPackedGuid128("Item", idx);

if (hasSrcLoc)
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "SrcLocation");
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "SrcLocation");

Vector3? dstLocation = null;
if (hasDstLoc)
{
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "DstLocation");
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "DstLocation");
if (packetSpellData != null)
packetSpellData.DstLocation = dstLocation;
}
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParserModule.V6_0_2_19033/Parsers/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData spellData,
packet.ReadPackedGuid128("Item", idx);

if (hasSrcLoc)
ReadLocation(packet, "SrcLocation");
ReadLocation(packet, idx, "SrcLocation");

if (hasDstLoc)
{
var dstLocation = ReadLocation(packet, "DstLocation");
var dstLocation = ReadLocation(packet, idx, "DstLocation");
if (spellData != null)
spellData.DstLocation = dstLocation;
}
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParserModule.V7_0_3_22248/Parsers/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData packetSpel
packet.ReadPackedGuid128("Item", idx);

if (hasSrcLoc)
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "SrcLocation");
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "SrcLocation");

Vector3? dstLocation = null;
if (hasDstLoc)
{
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "DstLocation");
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "DstLocation");
if (packetSpellData != null)
packetSpellData.DstLocation = dstLocation;
}
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParserModule.V8_0_1_27101/Parsers/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public static void ReadSpellTargetData(Packet packet, PacketSpellData packetSpel
packet.ReadPackedGuid128("Item", idx);

if (hasSrcLoc)
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "SrcLocation");
V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "SrcLocation");

Vector3? dstLocation = null;
if (hasDstLoc)
{
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, "DstLocation");
dstLocation = V6_0_2_19033.Parsers.SpellHandler.ReadLocation(packet, idx, "DstLocation");
if (packetSpellData != null)
packetSpellData.DstLocation = dstLocation;
}
Expand Down

0 comments on commit 3963ddf

Please sign in to comment.