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;