From 74284c9f86eb442f4ccc286fddfbc6e05cb2e23e Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 8 Dec 2025 02:03:15 +0100 Subject: [PATCH] Fixed so that the critdamage should be correct --- module/helpers/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/helpers/utils.mjs b/module/helpers/utils.mjs index a8fae2b5..39d5298d 100644 --- a/module/helpers/utils.mjs +++ b/module/helpers/utils.mjs @@ -471,5 +471,5 @@ export function refreshIsAllowed(allowedTypes, typeToCheck) { export async function getCritDamageBonus(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); }