[fix] fixed roll
This commit is contained in:
@@ -605,7 +605,7 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
|||||||
if(isNaN(maxRoll)){
|
if(isNaN(maxRoll)){
|
||||||
return 'NaN'
|
return 'NaN'
|
||||||
}
|
}
|
||||||
return Math.floor(Math.random() * maxRoll).toString()
|
return (Math.floor(Math.random() * maxRoll) + 1).toString()
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user