From cd5fddd8d1d363c062180f09e1d51c8a3749927f Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 17 Aug 2023 22:01:44 -0700 Subject: [PATCH] fix: Fixes stat mod having no owner (#1463) --- Projects/Server/Mobiles/Mobile.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index ff51af026f..e93aac4be7 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -8436,6 +8436,8 @@ public virtual void AddStatMod(StatMod mod) return; } + mod.Owner = this; + _statMods ??= new List(); _statMods.Add(mod); Delta(MobileDelta.Stat | GetStatDelta(mod.Type));