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;
}
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;
}