Fix async/await roll postEvaluate

This commit is contained in:
Dapoolp 2025-07-26 14:40:34 +02:00
parent bf31ced3df
commit 86b651cc11
4 changed files with 22 additions and 18 deletions

View file

@ -25,10 +25,10 @@ export default class DamageRoll extends DHRoll {
config.roll = this.unifyDamageRoll(parts);
}
static async postEvaluate(roll, config = {}) {
static postEvaluate(roll, config = {}) {
return {
...roll,
...(await super.postEvaluate(roll.roll, config)),
...super.postEvaluate(roll.roll, config),
damageTypes: [...(roll.damageTypes ?? [])],
roll: roll.roll,
type: config.type,