diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index 5f715220..2693ff38 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -466,6 +466,8 @@ class General implements iAction $this->calcCache[$cKey] = $statValue; + $statValue = Util::clamp($statValue, 0, GameConst::$maxLevel); + if ($useFloor) { return Util::toInt($statValue); }