~ruther/NosSmooth

37b6da9ff1c73c4dd1c1719b85b516208cc49eb2 — Rutherther 2 years ago fcaa97a
fix(game): update position of caster upon SuPacket
1 files changed, 5 insertions(+), 0 deletions(-)

M Core/NosSmooth.Game/PacketHandlers/Entities/SkillUsedResponder.cs
M Core/NosSmooth.Game/PacketHandlers/Entities/SkillUsedResponder.cs => Core/NosSmooth.Game/PacketHandlers/Entities/SkillUsedResponder.cs +5 -0
@@ 85,6 85,11 @@ public class SkillUsedResponder : IPacketResponder<SuPacket>, IPacketResponder<S
            target.Hp.Amount = packet.Hp;
        }

        if (packet.PositionX != 0 && packet.PositionY != 0)
        {
            caster.Position = new Position(packet.PositionX, packet.PositionY);
        }

        Skill? skillEntity;
        var skills = _game.Skills;
        if (packet.SkillVNum is not null && caster is Character character && skills is not null)

Do not follow this link