Fixed DamageReroll

This commit is contained in:
WBHarry 2026-05-27 19:01:47 +02:00
parent 06c70b7e58
commit 126a8e4660
4 changed files with 59 additions and 6 deletions

View file

@ -224,4 +224,19 @@ export default class D20Roll extends DHRoll {
resetFormula() {
return (this._formula = this.constructor.getFormula(this.terms));
}
async reroll(options) {
const result = await super.reroll(options);
if (this instanceof game.system.api.dice.DualityRoll) return result;
if (options?.liveRoll) {
if (game.modules.get('dice-so-nice')?.active) {
await game.dice3d.showForRoll(result, game.user, true);
} else {
foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
}
}
return result;
}
}