Fixed so that the critdamage should be correct (#1393)

This commit is contained in:
WBHarry 2025-12-08 02:32:25 +01:00 committed by GitHub
parent b307d65d18
commit 91d916a28d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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