Add loopCountCheck to maximizeRoll reroll shortcut
This commit is contained in:
parent
2f2a8f67e0
commit
06095e3bdc
|
@ -538,6 +538,8 @@ export const roll = (rollStr: string, maximizeRoll: boolean, nominalRoll: boolea
|
|||
// If maximizeRoll is on and we've entered the reroll code, dieSize is not allowed, determine the next best option and always return that
|
||||
if (!minMaxOverride) {
|
||||
mmLoop: for (let m = rollConf.dieSize - 1; m > 0; m--) {
|
||||
loopCountCheck(++loopCount);
|
||||
|
||||
if (!rollConf.reroll.nums.includes(m)) {
|
||||
minMaxOverride = m;
|
||||
break mmLoop;
|
||||
|
|
Loading…
Reference in New Issue