From a90b15d596a1877fb515f211f17930dea4d9ff2b Mon Sep 17 00:00:00 2001 From: Zankaria Date: Mon, 14 Oct 2024 10:13:05 +0200 Subject: [PATCH] functions.php: dice minimum value set to 1 --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index d9fea0a5..b215023e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2815,7 +2815,7 @@ function handle_dice_roll_markup(array $matches, ?string $img_path): string { $acc = ''; $text = "$dice_count d $dice_faces + $dice_offset"; for ($i = 0; $i < $dice_count; $i++) { - $res = $dice_offset + mt_rand(0, $dice_faces); + $res = $dice_offset + mt_rand(1, $dice_faces); if ($img_path === null) { $fmt = "$text $res"; } else {