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,6 +169,7 @@ export default class DualityRoll extends D20Roll {
static async buildEvaluate(roll, config = {}, message = {}) {
await super.buildEvaluate(roll, config, message);
if (game.dice3d) {
await setDiceSoNiceForDualityRoll(
roll,
config.roll.advantage.type,
@ -177,6 +178,7 @@ export default class DualityRoll extends D20Roll {
config.roll.advantage.dice
);
}
}
static postEvaluate(roll, config = {}) {
const data = super.postEvaluate(roll, config);