fix: Fixes stat mod having no owner (#1463)

This commit is contained in:
Kamron Batman 2023-08-17 22:01:44 -07:00 committed by GitHub
parent 35b7c35167
commit cd5fddd8d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8436,6 +8436,8 @@ public partial class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPro
return;
}
mod.Owner = this;
_statMods ??= new List<StatMod>();
_statMods.Add(mod);
Delta(MobileDelta.Stat | GetStatDelta(mod.Type));