From 8a7ff2306a4a5923454e154f5446e1e749c3f1e8 Mon Sep 17 00:00:00 2001 From: Dapoulp <74197441+Dapoulp@users.noreply.github.com> Date: Sun, 6 Jul 2025 13:38:10 +0200 Subject: [PATCH] Fix D20 roll adv/disadv removing (#280) --- module/dice/d20Roll.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/dice/d20Roll.mjs b/module/dice/d20Roll.mjs index fab2c06d..c344231f 100644 --- a/module/dice/d20Roll.mjs +++ b/module/dice/d20Roll.mjs @@ -118,7 +118,7 @@ export default class D20Roll extends DHRoll { applyAdvantage() { this.d20.modifiers.findSplice(m => ['kh', 'kl'].includes(m)); - if (!this.hasAdvantage && !this.hasDisadvantage) this.number = 1; + if (!this.hasAdvantage && !this.hasDisadvantage) this.d20.number = 1; else { this.d20.number = 2; this.d20.modifiers.push(this.hasAdvantage ? 'kh' : 'kl');