From 2ed3a82b796822fd79203c9ead83810be37bed59 Mon Sep 17 00:00:00 2001 From: Lilith Schier Date: Thu, 13 Aug 2026 12:22:31 +0200 Subject: [PATCH] fixed dropping off by one --- src/dice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dice.rs b/src/dice.rs index 17e5571..e4b2539 100644 --- a/src/dice.rs +++ b/src/dice.rs @@ -188,7 +188,7 @@ impl Expression { } } if let Some(dh) = dh { - if rolls.len() - 1 - rank <= dh { + if rolls.len() - 1 - rank < dh { skip = true; } } @@ -198,7 +198,7 @@ impl Expression { } } if let Some(dl) = dl { - if rank <= dl { + if rank < dl { skip = true; } }