diff --git a/src/encounter/index.ts b/src/encounter/index.ts index 061c1fe..810eec5 100644 --- a/src/encounter/index.ts +++ b/src/encounter/index.ts @@ -238,8 +238,8 @@ export class EncounterParser { number = 1; } if (!isNaN(Number(number))) number = Number(number); - if (!number || (typeof number == "number" && number < 1)) number = 1; - + if (number != 0 && !number) number = 1; + if (typeof number == "number" && number < 1) number = 0; let name: string, display: string, hp: number,