From 1135e3aff2e7ca7aafb66f472af46e8cf118f090 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 19 Nov 2022 21:56:51 +0100 Subject: [PATCH] fix flaws usage --- module/controllers/bol-rolls.js | 3 ++- system.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index 9d8edd3..a6e1b74 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -465,10 +465,11 @@ export class BoLRoll { ui.notifications.warn("Pas assez de Points de Pouvoir !") return } + console.log("ROLLMALUS", rollData) rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ? $('#register-init').is(":checked") : false; - const isMalus = rollData.mDice > 0 + const isMalus = rollData.nbFlaws > rollData.nbBoons rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0 let rollbase = rollData.attrValue + rollData.aptValue diff --git a/system.json b/system.json index 4e2058f..26615af 100644 --- a/system.json +++ b/system.json @@ -14,7 +14,7 @@ ], "url": "https://www.uberwald.me/gitea/public/bol", "license": "LICENSE.txt", - "version": "10.3.1", + "version": "10.3.2", "compatibility": { "minimum": "10", "verified": "10.287" @@ -193,7 +193,7 @@ ], "socket": true, "manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.3.1.zip", + "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.3.2.zip", "background": "systems/images/map_lemurie.webp", "gridDistance": 1.5, "gridUnits": "m",