From 49ad4ff9c8aeb419bb799c17af8a6123eb7efd33 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 31 Dec 2020 03:33:16 +0100 Subject: [PATCH] Fix: ajustements pour rdd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pas de caractéristiques => isAjustementAstrologique doit retourner false (au lieu d'exception) --- module/rdd-resolution-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-resolution-table.js b/module/rdd-resolution-table.js index bd9e97c4..e9cd6f05 100644 --- a/module/rdd-resolution-table.js +++ b/module/rdd-resolution-table.js @@ -207,7 +207,7 @@ export class RdDResolutionTable { } static isAjustementAstrologique(rollData) { - if (rollData.selectedCarac.label.toLowerCase().includes('chance')) { + if (rollData.selectedCarac && rollData.selectedCarac.label.toLowerCase().includes('chance')) { return true; } if (rollData.selectedSort && rollData.selectedSort.data.isrituel) {