From 91757bf0895058f68985beacc4fdecd8312360bf Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 9 Aug 2023 01:54:31 +0900 Subject: [PATCH] [fix] fixed roll --- src/ts/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index 97bd908e..41c8cdf1 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -605,7 +605,7 @@ const matcher = (p1:string,matcherArg:matcherArg) => { if(isNaN(maxRoll)){ return 'NaN' } - return Math.floor(Math.random() * maxRoll).toString() + return (Math.floor(Math.random() * maxRoll) + 1).toString() } return null }