From 335ef36746c30d80f2b979050bfd40a70d4be44b Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 19 Feb 2021 09:33:43 -0500 Subject: Fix bug with die roll comparison for mutation skip. --- rules.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mjs b/rules.mjs index 176035a..f726a5a 100644 --- a/rules.mjs +++ b/rules.mjs @@ -52,7 +52,7 @@ class RollForNucleotide { } handleDieRoll() { - if (this.rules.die.value > Rules.initialGenomeBases) { + if (this.rules.die.value > Rules.initialGenomeBases.length) { this.rules.iterations-- if (this.rules.isLastIteration) { this.rules.next(new DoNothing(this.rules)) -- cgit v1.2.3