Made some handlign for the damage when a tagTeamRoll crits

This commit is contained in:
WBHarry 2025-12-06 22:08:34 +01:00
parent 6d8d773a26
commit bcc87334b6
2 changed files with 57 additions and 22 deletions

View file

@ -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);
}