Fix: affichage des dés sur éthylisme

This commit is contained in:
Vincent Vandemeulebrouck 2021-05-19 23:05:56 +02:00
parent 36b3cbcae7
commit 69869fb810

View File

@ -134,9 +134,8 @@ export class RdDDice {
return roll; return roll;
} }
static async rollTotal(formula) { static async rollTotal(formula, options = { showDice: false }) {
const roll = new Roll(formula); const roll = await RdDDice.roll(formula, options);
await roll.evaluate({ async: true });
return roll.total; return roll.total;
} }