mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Made some handlign for the damage when a tagTeamRoll crits
This commit is contained in:
parent
6d8d773a26
commit
bcc87334b6
2 changed files with 57 additions and 22 deletions
|
|
@ -451,3 +451,8 @@ export async function waitForDiceSoNice(message) {
|
|||
await game.dice3d.waitFor3DAnimationByMessageID(message.id);
|
||||
}
|
||||
}
|
||||
|
||||
export async function getCritDamageBonus(formula) {
|
||||
const critRoll = new Roll(formula);
|
||||
return critRoll.dice.reduce((acc, dice) => acc + dice.faces, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue