fix: Fixes skill gain issue (#1558)

This commit is contained in:
Kamron Batman 2023-10-21 10:03:50 -07:00 committed by GitHub
parent 74f67487c4
commit aaf0fc32fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ public static class SkillCheck
if (!from.Player || skills.Total < skills.Cap)
{
skill.BaseFixedPoint = Math.Min(toGain, skill.CapFixedPoint - skill.BaseFixedPoint);
skill.BaseFixedPoint = Math.Min(skill.BaseFixedPoint + toGain, skill.CapFixedPoint);
}
}