Gracefully handle Dice So Nice module state when starting a Duality Roll

This commit is contained in:
dvanbale 2025-07-27 19:38:54 +02:00
parent c81c1941a4
commit 0708c83459

View file

@ -169,13 +169,15 @@ export default class DualityRoll extends D20Roll {
static async buildEvaluate(roll, config = {}, message = {}) { static async buildEvaluate(roll, config = {}, message = {}) {
await super.buildEvaluate(roll, config, message); await super.buildEvaluate(roll, config, message);
await setDiceSoNiceForDualityRoll( if (game.dice3d) {
roll, await setDiceSoNiceForDualityRoll(
config.roll.advantage.type, roll,
config.roll.hope.dice, config.roll.advantage.type,
config.roll.fear.dice, config.roll.hope.dice,
config.roll.advantage.dice config.roll.fear.dice,
); config.roll.advantage.dice
);
}
} }
static postEvaluate(roll, config = {}) { static postEvaluate(roll, config = {}) {