From d9c7d4bbcf91edec96fddae27a973dcae1cdafa9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 4 Dec 2020 23:56:03 +0100 Subject: [PATCH] Fix: endurance+1 != max --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 49ebc715..2562f131 100644 --- a/module/actor.js +++ b/module/actor.js @@ -980,7 +980,7 @@ export class RdDActor extends Actor { } newValue = Math.max(0, newValue); if (inc>0) { // le max d'endurance s'applique seulement à la récupération - newValue = Math.max(newValue, this._computeEnduranceMax()) + newValue = Math.min(newValue, this._computeEnduranceMax()) } if (data.value - newValue > 1) { this.testSiSonne(sante, newValue); // Peut-être sonné si 2 points d'endurance perdus d'un coup