From 43e069cc9b002a795b905880f82d9c1f96bcac68 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 13 Jun 2021 21:29:14 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Maladresse=20non-arm=C3=A9e=20pour=20l'e?= =?UTF-8?q?squive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-combat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index cacc3dd1..3f67425d 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -911,7 +911,7 @@ export class RdDCombat { console.log("RdDCombat._onEchecTotal >>>", rollData); const arme = rollData.arme; - const avecArme = arme?.data.categorie_parade != 'sans-armes'; + const avecArme = arme && arme.data.categorie_parade != 'sans-armes'; const action = (rollData.attackerRoll ? (arme ? "la parade" : "l'esquive") : "l'attaque"); ChatUtility.createChatWithRollMode(this.defender.name, { content: `Maladresse à ${action}! ` + await RdDRollTables.getMaladresse({ arme: avecArme })