Fix #115 fix negative effect

This commit is contained in:
2022-10-07 17:45:53 +02:00
parent 8fac4dcb36
commit b2dd8edab2
3 changed files with 17 additions and 8 deletions

View File

@@ -544,7 +544,7 @@ export class PegasusUtility {
/* -------------------------------------------- */
static getDiceFromLevel(level = 0) {
level = Number(level)
level = Math.max( Number(level), 0)
return this.diceList[level];
}
/* -------------------------------------------- */