Skip to content

Commit

Permalink
fix: Fixes stat mod having no owner (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Aug 18, 2023
1 parent 35b7c35 commit cd5fddd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Projects/Server/Mobiles/Mobile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8436,6 +8436,8 @@ public virtual void AddStatMod(StatMod mod)
return;
}

mod.Owner = this;

_statMods ??= new List<StatMod>();
_statMods.Add(mod);
Delta(MobileDelta.Stat | GetStatDelta(mod.Type));
Expand Down

0 comments on commit cd5fddd

Please sign in to comment.