From 3cfeeadbb66185fa28281debf7aae74361807587 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 19 Jan 2021 22:32:08 +0100 Subject: [PATCH] Seuls les personnages sont saouls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pas d'éthylisme pour les créatures --- module/actor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 78aa7024..5be84288 100644 --- a/module/actor.js +++ b/module/actor.js @@ -391,7 +391,9 @@ export class RdDActor extends Actor { } await this.update({ "data.blessures": blessures }); } - await this.setEthylisme(1); + if (this.isPersonnage()) { + await this.setEthylisme(1); + } await this.santeIncDec("vie", this.data.data.sante.vie.max - this.data.data.sante.vie.value); await this.santeIncDec("endurance", this.data.data.sante.endurance.max - this.data.data.sante.endurance.value);