mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Fixed so that the critdamage should be correct (#1393)
This commit is contained in:
parent
b307d65d18
commit
91d916a28d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue