Fixed so that the critdamage should be correct

This commit is contained in:
WBHarry 2025-12-08 02:03:15 +01:00
parent 28976bb4b8
commit 74284c9f86

View file

@ -471,5 +471,5 @@ export function refreshIsAllowed(allowedTypes, typeToCheck) {
export async function getCritDamageBonus(formula) { export async function getCritDamageBonus(formula) {
const critRoll = new Roll(formula); const critRoll = new Roll(formula);
return critRoll.dice.reduce((acc, dice) => acc + dice.faces, 0); return critRoll.dice.reduce((acc, dice) => acc + dice.faces * dice.number, 0);
} }