Added HD Floor of 1

Per Issue #12
master
The Happy Anarchist 2020-09-24 16:53:49 -10:00
parent e111e70129
commit 455a64c0a1
1 changed files with 5 additions and 0 deletions

View File

@ -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;