mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[Fix] TagTeamRoll Critical Damage (#1371)
* Made some handlign for the damage when a tagTeamRoll crits * Fixed so hope is taken from the initiator if the roll is with fear * Raised verison
This commit is contained in:
parent
6ae00e15bd
commit
2a622a7363
3 changed files with 67 additions and 30 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