Merge branch 'v1.5-rencontre' into 'v1.5'

Fix evaluation force rencontres

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!316
This commit is contained in:
Leratier Bretonnien 2022-02-04 13:11:09 +00:00
commit 961bc36cdf

View File

@ -379,7 +379,9 @@ export class TMRRencontres {
/* -------------------------------------------- */ /* -------------------------------------------- */
static async evaluerForceRencontre(rencontre) { 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; return rencontre.force;
} }