Fix evaluation force rencontres

This commit is contained in:
Vincent Vandemeulebrouck 2022-02-04 00:40:07 +01:00
parent 91f9e8832d
commit a4fac5ac6a

View File

@ -379,7 +379,9 @@ export class TMRRencontres {
/* -------------------------------------------- */
static async evaluerForceRencontre(rencontre) {
rencontre.force = await new Roll(rencontre.force).evaluate().total;
const rollForce = new Roll(rencontre.force);
await rollForce.evaluate();
rencontre.force = rollForce.total;
return rencontre.force;
}