diff --git a/module/actor.js b/module/actor.js index 70dfc9f1..53ac2d52 100644 --- a/module/actor.js +++ b/module/actor.js @@ -392,6 +392,7 @@ export class RdDActor extends Actor { }; return cumul; } + /* -------------------------------------------- */ async recuperationReve(message) { const seuil = this.data.data.reve.seuil.value; @@ -400,7 +401,7 @@ export class RdDActor extends Actor { message.content += "
Vous avez suffisament rêvé (seuil " + seuil + ", rêve actuel "+reve+")"; } else { - let deRecuperation = RdDDice.deDraconique(); + let deRecuperation = await RdDDice.deDraconique(); console.log("recuperationReve", deRecuperation); if (deRecuperation>=7) {