server-master/srcs/_plugins/WingsEmu.Plugins.PacketHandling/Game/Mate/PsOpPacketHandler.cs
2026-02-10 18:21:30 +01:00

19 lines
No EOL
604 B
C#

using System.Threading.Tasks;
using WingsEmu.Game.Inventory.Event;
using WingsEmu.Game.Networking;
using WingsEmu.Packets.ClientPackets;
namespace WingsEmu.Plugins.PacketHandling.Game.Mate;
public class PsOpPacketHandler : GenericGamePacketHandlerBase<PsopServerPacket>
{
protected override async Task HandlePacketAsync(IClientSession session, PsopServerPacket packet)
{
await session.EmitEventAsync(new PartnerSpecialistSkillEvent
{
PartnerSlot = packet.PetSlot,
SkillSlot = packet.SkillSlot,
Roll = packet.Option == 1
});
}
}