diff --git a/module/actor.js b/module/actor.js index c44990dd..f0d6d8cb 100644 --- a/module/actor.js +++ b/module/actor.js @@ -556,11 +556,9 @@ export class RdDActor extends RdDBaseActorSang { if (fatigue <= fatigueMin) { return } - fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)); - setTimeout( // On attend un peu pour que le message de récupération de r - async () => { - await this.update({ 'system.sante.fatigue.value': fatigue }); - }, 200); + fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)) + await this.update({ 'system.sante.fatigue.value': fatigue }); + await new Promise(resolve => setTimeout(resolve, 200)); if (fatigue == 0) { message.content += "Vous êtes complêtement reposé. "; }