diff --git a/changelog.md b/changelog.md index ef79d821..4d0bcad4 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,9 @@ - Fix Foundry V13 - les tooltips des ajustements sont correctement visible +- en cas d'appel au moral lorsqu'une double significative est requise, + le moral est perdu si la réussite est insuffisante + ## 13.0.6 - Le bandage d'Illysis - Les soins sont de nouveau disponibles depuis les tokens diff --git a/module/actor.js b/module/actor.js index 0d50547c..4735abd1 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1583,7 +1583,7 @@ export class RdDActor extends RdDBaseActorSang { return } if (rollData.rolled.isEchec || - (rollData.ajustements.diviseurSignificative && (rollData.rolled.roll * rollData.ajustements.diviseurSignificative > rollData.score))) { + (rollData.diviseurSignificative && (rollData.rolled.roll * rollData.diviseurSignificative > rollData.rolled.score))) { rollData.perteMoralEchec = rollData.moral <= -3 ? 'dissolution' : 'perte'; rollData.moral = await this.moralIncDec(-1); /* L'appel au moral a échoué. Le personnage perd un point de moral */ }