fix: Fixes skill mods (#1099)

This commit is contained in:
Kamron Batman 2022-06-30 08:46:54 -07:00 committed by GitHub
parent f2253e7f0d
commit 414ef8d8d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,6 @@ namespace Server;
public abstract partial class SkillMod : MobileMod
{
private bool _obeyCap;
private bool _relative;
private SkillName _skill;
private double _value;
@ -60,7 +59,7 @@ public abstract partial class SkillMod : MobileMod
if (owner != value)
{
owner?.RemoveSkillMod(this);
owner = value;
base.Owner = owner = value;
owner?.AddSkillMod(this);
}
}