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

@ -18,7 +18,12 @@ export default class DamageRoll extends DHRoll {
if (config.evaluate !== false) for (const roll of config.roll) await roll.roll.evaluate();
roll._evaluated = true;
const parts = config.roll.map(r => this.postEvaluate(r));
const parts = [];
for (const roll of config.roll) {
parts.push(this.postEvaluate(roll));
roll.roll = JSON.stringify(roll.roll.toJSON());
}
config.damage = this.unifyDamageRoll(parts);
}