From aa27168c2b25d7d477f62e53a89867b894513bb7 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 19 Nov 2022 22:00:14 +0100 Subject: [PATCH] fix flaws usage --- module/controllers/bol-rolls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index a6e1b74..0e7e421 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -465,10 +465,10 @@ export class BoLRoll { ui.notifications.warn("Pas assez de Points de Pouvoir !") return } - console.log("ROLLMALUS", rollData) + //console.log("ROLLMALUS", rollData) rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ? $('#register-init').is(":checked") : false; - + const isMalus = rollData.nbFlaws > rollData.nbBoons rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0