From fd73b2c7afe8bbe5a86d65cdb9815c77a500acee Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Mar 2021 01:12:51 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20r=C3=A9cup=C3=A9ration=20chance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index e0d7f51f..02534de7 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2280,7 +2280,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async chanceActuelleIncDec(value, limit = true) { - chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); + let chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); if (limit) { chance = Math.min(chance.value, this.getChance()) }