From f3bcf89015f9b7dda2d56b788672acae6ae97d24 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Fri, 23 May 2025 15:54:17 -0700 Subject: [PATCH] fix: Fixes weapons not serializing lesser poison (#2194) ### Summary Fixes weapons not serializing lesser poison. > [!NOTE] > Dev Note: After applying this fix, fix weapons already in-game using the following command > `[global set poison lesser where baseweapon poison = null poisoncharges > 0` --- Projects/UOContent/Items/Weapons/BaseWeapon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/UOContent/Items/Weapons/BaseWeapon.cs b/Projects/UOContent/Items/Weapons/BaseWeapon.cs index c75b6bbcf..badb4ce1d 100644 --- a/Projects/UOContent/Items/Weapons/BaseWeapon.cs +++ b/Projects/UOContent/Items/Weapons/BaseWeapon.cs @@ -88,7 +88,7 @@ public abstract partial class BaseWeapon [SerializableFieldSaveFlag(7)] [MethodImpl(MethodImplOptions.AggressiveInlining)] - private bool ShouldSerializePoison() => _poison?.Level > 0; + private bool ShouldSerializePoison() => _poison != null; [InvalidateProperties] [SerializableField(8)]