From 0708c83459000e19ca21037611fea37d15f490ff Mon Sep 17 00:00:00 2001 From: dvanbale Date: Sun, 27 Jul 2025 19:38:54 +0200 Subject: [PATCH] Gracefully handle Dice So Nice module state when starting a Duality Roll --- module/dice/dualityRoll.mjs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/module/dice/dualityRoll.mjs b/module/dice/dualityRoll.mjs index 8ad61996..f112712e 100644 --- a/module/dice/dualityRoll.mjs +++ b/module/dice/dualityRoll.mjs @@ -169,13 +169,15 @@ export default class DualityRoll extends D20Roll { static async buildEvaluate(roll, config = {}, message = {}) { await super.buildEvaluate(roll, config, message); - await setDiceSoNiceForDualityRoll( - roll, - config.roll.advantage.type, - config.roll.hope.dice, - config.roll.fear.dice, - config.roll.advantage.dice - ); + if (game.dice3d) { + await setDiceSoNiceForDualityRoll( + roll, + config.roll.advantage.type, + config.roll.hope.dice, + config.roll.fear.dice, + config.roll.advantage.dice + ); + } } static postEvaluate(roll, config = {}) {