From a4fac5ac6a591f7c3ce7ea38fced373ddc81259d Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 4 Feb 2022 00:40:07 +0100 Subject: [PATCH] Fix evaluation force rencontres --- module/tmr-rencontres.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/tmr-rencontres.js b/module/tmr-rencontres.js index 85c12887..af2621ed 100644 --- a/module/tmr-rencontres.js +++ b/module/tmr-rencontres.js @@ -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; }