Fix for v12

This commit is contained in:
2024-05-31 21:48:19 +02:00
parent db2ca2453e
commit e19577eab2
14 changed files with 51 additions and 35 deletions

View File

@ -119,7 +119,7 @@ export class RdDCombatManager extends Combat {
//console.log("Combatat", c);
const roll = combatant.getInitiativeRoll(rollFormula);
if (!roll.total) {
roll.evaluate({ async: false });
await roll.evaluate();
}
const total = Math.max(roll.total, 0.00);
console.log("Compute init for", rollFormula, roll, total, combatant);