Limiter les lancers de dés de nombre astraux
This commit is contained in:
@ -124,13 +124,13 @@ export class RdDDice {
|
||||
CONFIG.Dice.terms[DeHeure.DENOMINATION] = DeHeure;
|
||||
}
|
||||
|
||||
static async roll(formula, options = { showDice: false }) {
|
||||
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;
|
||||
}
|
||||
await RdDDice.show(roll, game.settings.get("core", "rollMode"));
|
||||
await RdDDice.show(roll, options.rollMode ?? game.settings.get("core", "rollMode"));
|
||||
return roll;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user