diff --git a/module/actor.js b/module/actor.js index 014e8b1b..9bedb279 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1180,7 +1180,9 @@ export class RdDActor extends Actor { compteur.value = result.newValue; //console.log(name, inc, data.value, result.newValue, minValue, data.max); // If endurance lost, then the same amount of fatigue cannot be recovered - sante.fatigue.value = Math.max(sante.fatigue.value + fatigue, this._computeFatigueMin()); + if (sante.fatigue && fatigue > 0) { + sante.fatigue.value = Math.max(sante.fatigue.value + fatigue, this._computeFatigueMin()); + } await this.update({ "data.sante": sante }); return result;