From aee7a43901791fc552b305ad30f5b3416df1d4d3 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 25 Nov 2020 23:41:08 +0100 Subject: [PATCH] await pour appliquerReveDeDragon --- module/actor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index ff80ba4a..8786df20 100644 --- a/module/actor.js +++ b/module/actor.js @@ -528,16 +528,16 @@ export class RdDActor extends Actor { let rolled = await RdDResolutionTable.roll(reveActuel, difficulte); // TODO: xp particulière console.log("combattreReveDeDragon", rolled ); - return this.appliquerReveDeDragon(rolled, force); + return await this.appliquerReveDeDragon(rolled, force); } /* -------------------------------------------- */ - appliquerReveDeDragon(roll, force) { + async appliquerReveDeDragon(roll, force) { let message = ""; if (roll.isSuccess) { message += "
Vous gagnez " + force + " points de Rêve"; - this.updatePointDeSeuil(); - this.reveActuelIncDec(force); + await this.updatePointDeSeuil(); + await this.reveActuelIncDec(force); } if (roll.isPart) { // TODO: Dialog pour choix entre HR opu général?