From 3ec3ce6bdd8baa897990f48d9e6b3fc5d11263a3 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 1 Jan 2023 13:46:14 +0100 Subject: [PATCH] chore: update Game --- Core/NosSmooth.Game/NosSmooth.Game.csproj | 8 ++++---- .../PacketHandlers/Entities/StPacketResponder.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/NosSmooth.Game/NosSmooth.Game.csproj b/Core/NosSmooth.Game/NosSmooth.Game.csproj index 3a5dd88..b5b900d 100644 --- a/Core/NosSmooth.Game/NosSmooth.Game.csproj +++ b/Core/NosSmooth.Game/NosSmooth.Game.csproj @@ -8,10 +8,10 @@ NosSmooth Game library handling the current game state by responding to packets. https://github.com/Rutherther/NosSmooth/ MIT - 1.3.0 - Fix multiple packet/event handling problems. - 1.3.0 - 1.3.0 + 1.3.1 + Update to use StSubPacket correctly + 1.3.1 + 1.3.1 diff --git a/Core/NosSmooth.Game/PacketHandlers/Entities/StPacketResponder.cs b/Core/NosSmooth.Game/PacketHandlers/Entities/StPacketResponder.cs index 4307870..320dc60 100644 --- a/Core/NosSmooth.Game/PacketHandlers/Entities/StPacketResponder.cs +++ b/Core/NosSmooth.Game/PacketHandlers/Entities/StPacketResponder.cs @@ -45,7 +45,7 @@ public class StPacketResponder : IPacketResponder return Task.FromResult(Result.FromSuccess()); } - entity.EffectsVNums = packet.BuffVNums; + entity.EffectsVNums = packet.BuffVNums?.Select(x => x.CardId).Cast().ToList(); entity.Level = packet.Level; if (entity is Player player) { -- 2.48.1