From ac436bbb257ed6cef9a09a5215db245bb19c85aa Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 12 Nov 2023 00:24:42 +0100 Subject: [PATCH] Fix: Recevoir une queue annulait l'insomnie --- module/actor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index a51c6ddf..2e839390 100644 --- a/module/actor.js +++ b/module/actor.js @@ -323,7 +323,9 @@ export class RdDActor extends RdDBaseActorSang { } async setInfoSommeilInsomnie() { - await this.update({ 'system.sommeil.insomnie': EffetsDraconiques.isSujetInsomnie(this) }); + if (EffetsDraconiques.isSujetInsomnie(this)) { + await this.update({ 'system.sommeil.insomnie': true }); + } } async setInfoSommeilMoral(situationMoral) {