From 455a64c0a11db2d2b4804f6b1ae998983e5c7f6a Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Thu, 24 Sep 2020 16:53:49 -1000 Subject: [PATCH] Added HD Floor of 1 Per Issue #12 --- src/module/dice.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/module/dice.js b/src/module/dice.js index 1a46437..257a125 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -29,6 +29,11 @@ export class AcksDice { } else { result.isFailure = true; } + } else if (data.roll.type == "hitdice") { + // RESULT CAN BE NO LOWER THAN 1 + if (roll.total < 1) { + roll._total = 1; + } } else if (data.roll.type == "table") { // Reaction let table = data.roll.table;