[fix] fixed roll

This commit is contained in:
kwaroran
2023-08-09 01:54:31 +09:00
parent e05c7e5900
commit 91757bf089

View File

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