Merged with main

This commit is contained in:
WBHarry 2025-12-07 00:09:41 +01:00
commit 74cc08f965
3 changed files with 67 additions and 30 deletions

View file

@ -468,3 +468,8 @@ export function refreshIsAllowed(allowedTypes, typeToCheck) {
return false;
}
}
export async function getCritDamageBonus(formula) {
const critRoll = new Roll(formula);
return critRoll.dice.reduce((acc, dice) => acc + dice.faces, 0);
}