From 69869fb810912a0f53b5c3e9912d6a9b4ac7dd54 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 19 May 2021 23:05:56 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20affichage=20des=20d=C3=A9s=20sur=20?= =?UTF-8?q?=C3=A9thylisme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-dice.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/rdd-dice.js b/module/rdd-dice.js index 27ee6c3e..4063d8db 100644 --- a/module/rdd-dice.js +++ b/module/rdd-dice.js @@ -134,9 +134,8 @@ export class RdDDice { return roll; } - static async rollTotal(formula) { - const roll = new Roll(formula); - await roll.evaluate({ async: true }); + static async rollTotal(formula, options = { showDice: false }) { + const roll = await RdDDice.roll(formula, options); return roll.total; }