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