From 229353c3fe161eb7ab6ddc5f8578624b52318f4a Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Wed, 29 Jun 2022 03:16:53 -0400 Subject: [PATCH] screwed the boolean logic up lol --- src/solver/roller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/roller.ts b/src/solver/roller.ts index e9e4daf..93c09c3 100644 --- a/src/solver/roller.ts +++ b/src/solver/roller.ts @@ -115,7 +115,7 @@ export const roll = (rollStr: string, maximiseRoll: boolean, nominalRoll: boolea loggingEnabled && log(LT.LOG, `Handling roll20 ${rollStr} | Parsed Die Size: ${rollConf.dieSize}`); // Finish parsing the roll - if (manualParse || remains.length > 0) { + if (!manualParse && remains.length > 0) { // Determine if the first item is a drop, and if it is, add the d back in if (remains.search(/\D/) !== 0 || remains.indexOf('l') === 0 || remains.indexOf('h') === 0) { remains = `d${remains}`;