Skip to content

Commit

Permalink
Update fall.js (#218)
Browse files Browse the repository at this point in the history
`await` the promise of `chris.damageRoll()` to be resolved
  • Loading branch information
thatlonelybugbear committed Apr 1, 2024
1 parent 8cb2890 commit 86b504d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/macros/actions/fall.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function fall({speaker, actor, token, character, item, args, scope,
break;
}
await ground(workflow.actor);
let damageRoll = chris.damageRoll(workflow, damageFormula);
let damageRoll = await chris.damageRoll(workflow, damageFormula);
await workflow.setDamageRolls([damageRoll]);
if (otherTarget) await chris.applyDamage([targetToken], damageRoll.total, 'bludgeoning');
}
}

0 comments on commit 86b504d

Please sign in to comment.