From e6f26deab9216aa6f134a0e05bc9a7d1b5f71a20 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 6 Jul 2026 22:22:05 +0200 Subject: [PATCH] Corrected ot Higher or Equal to for combo to continue --- module/dice/die/baseDie.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/dice/die/baseDie.mjs b/module/dice/die/baseDie.mjs index 0798db26..37c47d1d 100644 --- a/module/dice/die/baseDie.mjs +++ b/module/dice/die/baseDie.mjs @@ -56,8 +56,8 @@ export default class BaseDie extends foundry.dice.terms.Die { async continueCombo(maxIncreasesDiceSize) { const lastIndex = this.results.length - 1; - /* The Combo only continues if the latest roll was higher than the previous */ - if (this.results[lastIndex].result <= this.results[lastIndex - 1].result) return false; + /* The Combo only continues if the latest roll was higher or equal to the previous */ + if (this.results[lastIndex].result < this.results[lastIndex - 1].result) return false; const lastFaces = this.results[lastIndex].denomination?.slice(1) ?? this.faces; const increaseDiceSize = maxIncreasesDiceSize && lastFaces < 12 && this.results[lastIndex].result === lastFaces;