From 1632a4890b50cc312cd16e8edc2971e22fb2a2f9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 3 Feb 2021 20:39:52 +0100 Subject: [PATCH] =?UTF-8?q?Don=20de=20double=20r=C3=AAve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/actor.js b/module/actor.js index 0470f4d4..b1b570c9 100644 --- a/module/actor.js +++ b/module/actor.js @@ -473,9 +473,15 @@ export class RdDActor extends Actor { await this._recupererEthylisme(message); await this.recupererFatigue(message); await this.recuperationReve(message); + if (this.isDonDoubleReve()) { + await this.recuperationReve(message); + } } ChatMessage.create(message); } + isDonDoubleReve() { + return this.data.items.find(item => item.type == 'tete' && item.name == 'Don de double-rĂªve'); + } /* -------------------------------------------- */ async _recupererEthylisme(message) {