From 4a6786f220bb74920dfbd88b17a494868b645e66 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 4 Nov 2021 23:35:01 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20malus=20armure=20m?= =?UTF-8?q?=C3=AAme=20pour=200?= 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 bafcf877..192acc6e 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1288,7 +1288,7 @@ export class RdDActor extends Actor { .map(it => it.data.malus ?? 0) .reduce(Misc.sum(), 0); // Mise à jour éventuelle du malus armure - if (newMalusArmure && Misc.templateData(this).attributs?.malusarmure?.value != newMalusArmure) { + if (Misc.templateData(this).attributs?.malusarmure?.value != newMalusArmure) { await this.updateAttributeValue("malusarmure", newMalusArmure); } return newMalusArmure;