From e1637df35a60977ce7d31612aba378934e213933 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sun, 6 Jul 2025 13:11:51 +0200 Subject: [PATCH] Fix D20 roll adv/disadv removing --- 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');