diff --git a/inc/functions.php b/inc/functions.php index 33f22942..5380c14a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2360,6 +2360,11 @@ function diceRoller($post) { $diceY = intval($diceY); $diceZ = intval($diceZ); + // Arbitrary maximum number of dice + if ($diceX > 200) { + $diceX = 200; + } + // Continue only if we have valid values if($diceX > 0 && $diceY > 0) { $dicerolls = array();