From 3aa13511cd83f3c3812bf5f8bc77aef39ee6849a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Mar 2021 00:56:17 +0100 Subject: [PATCH] Fix jet de moral L'affichage du message ne fonctionnait plus --- module/actor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 95e599d5..e0d7f51f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1427,9 +1427,8 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async moralIncDec(ajustementMoral) { - + const actorData = Misc.data(this); if (ajustementMoral != 0) { - const actorData = Misc.data(this); let moral = Misc.toInt(actorData.data.compteurs.moral.value) + ajustementMoral if (moral > 3) { // exaltation const exaltation = Misc.toInt(actorData.data.compteurs.exaltation.value) + moral - 3;