Fix: Jets d'astrologies invisibles pour joueur

This commit is contained in:
Vincent Vandemeulebrouck
2021-06-13 21:56:01 +02:00
parent 3d7c80124b
commit 1c337576e2
3 changed files with 13 additions and 13 deletions

View File

@ -134,9 +134,7 @@ export class RdDDice {
static async roll(formula, options = { showDice: false, rollMode: undefined }) {
const roll = new Roll(formula);
await roll.evaluate({ async: true });
if (options.showDice) {
roll.showDice = options.showDice;
}
roll.showDice = options.showDice;
await RdDDice.show(roll, options.rollMode ?? game.settings.get("core", "rollMode"));
return roll;
}