From cb48c960c2ad8e6fcdf823ee4d06869fa285f7ec Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 5 Sep 2025 18:03:28 +0200 Subject: [PATCH] appel moral sur double significative MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lors d'un appel au moral avcec un facteur de significative recquis, vérifier la réussite effective (en utitisant la bnonne fraction du score) pour déterminer la perte de moral --- changelog.md | 3 +++ module/actor.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 */ }