mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Fix async/await roll postEvaluate
This commit is contained in:
parent
bf31ced3df
commit
86b651cc11
4 changed files with 22 additions and 18 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue