Fix récupération chance

This commit is contained in:
Vincent Vandemeulebrouck 2021-03-26 01:12:51 +01:00
parent 3aa13511cd
commit fd73b2c7af
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}