diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index 09ca6fb..3be9e18 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -564,6 +564,7 @@ export class BoLDefaultRoll { speaker: ChatMessage.getSpeaker({ actor: actor }), flags: { msgType: "default" } }) + this.rollData.actor = undefined // Cleanup msg.setFlag("world", "bol-roll-data", this.rollData) }) } diff --git a/module/system/bol-utility.js b/module/system/bol-utility.js index baae321..426f2b8 100644 --- a/module/system/bol-utility.js +++ b/module/system/bol-utility.js @@ -484,11 +484,21 @@ export class BoLUtility { nbDice++ modIndex = 4 } + if (res[3] == 'MM') { + postForm = 'kl' + nbDice + nbDice += 2 + modIndex = 4 + } if (res[3] == 'B') { postForm = 'kh' + nbDice nbDice++ modIndex = 4 } + if (res[3] == 'BB') { + postForm = 'kh' + nbDice + nbDice += 2 + modIndex = 4 + } } formula = "(" + nbDice + "d" + res[2] + reroll + postForm + "+" + modifier + ") *" + multiplier } diff --git a/system.json b/system.json index 485fb2e..f06791c 100644 --- a/system.json +++ b/system.json @@ -14,7 +14,7 @@ "url": "https://www.uberwald.me/gitea/public/bol", "license": "LICENSE.txt", "flags": {}, - "version": "10.0.1", + "version": "10.0.2", "compatibility": { "minimum": 10 }, @@ -182,7 +182,7 @@ "relationships": { }, "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.0.1.zip", + "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.0.2.zip", "protected": false, "background": "images/map_lemurie.webp", "gridDistance": 1.5,