From f96a64dc281fcf10f071d94d43fed675898896e5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 7 Jan 2023 21:08:52 +0100 Subject: [PATCH] feat(packets): represent pet skill packet correctly, last parameters are map x, map y --- .../Client/Battle/UsePetSkillPacket.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Packets/NosSmooth.Packets/Client/Battle/UsePetSkillPacket.cs b/Packets/NosSmooth.Packets/Client/Battle/UsePetSkillPacket.cs index c94134f..925489a 100644 --- a/Packets/NosSmooth.Packets/Client/Battle/UsePetSkillPacket.cs +++ b/Packets/NosSmooth.Packets/Client/Battle/UsePetSkillPacket.cs @@ -16,8 +16,8 @@ namespace NosSmooth.Packets.Client.Battle; /// The target entity type. /// The target id. /// Unknown, seems to always be 1. -/// Unknown, 6 for Otter. -/// Unknown, 9 for Otter. +/// The x coordinate of the pet. +/// The y coordinate of the pet. [PacketHeader("u_pet", PacketSource.Client)] [GenerateSerializer(true)] public record UsePetSkillPacket @@ -30,8 +30,8 @@ public record UsePetSkillPacket long TargetId, [PacketIndex(3)] byte Unknown, - [PacketIndex(4)] - byte Unknown1, - [PacketIndex(5)] - byte Unknown2 + [PacketIndex(4, IsOptional = true)] + short? MapX, + [PacketIndex(5, IsOptional = true)] + short? MapY ) : IPacket; \ No newline at end of file -- 2.48.1