From 5e6ffc7846da602d9e7f0ac5abff2771990dbdf9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 23 Mar 2023 01:42:48 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20bonus=20d'herbe=20de=20potion=20non=20en?= =?UTF-8?q?chant=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/actor.js b/module/actor.js index 6749d6dc..9d9426d4 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3567,7 +3567,7 @@ export class RdDActor extends RdDBaseActor { } } if (!potionData.system.magique || potionData.rolled.isSuccess) { - await this.setBonusPotionSoin(potionData.system.herbeBonus); + await this.setBonusPotionSoin(potionData.system.herbebonus); } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), @@ -3576,7 +3576,7 @@ export class RdDActor extends RdDBaseActor { } async setBonusPotionSoin(bonus) { - await this.update({ 'sante.bonusPotion': bonus }); + await this.update({ 'system.sante.bonusPotion': bonus }); } /* -------------------------------------------- */ @@ -3604,7 +3604,7 @@ export class RdDActor extends RdDBaseActor { } } if (!potionData.system.magique || potionData.rolled.isSuccess) { - this.bonusRepos = potionData.system.herbeBonus; + this.bonusRepos = potionData.system.herbebonus; } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),