diff --git a/src/game/language.ts b/src/game/language.ts index d39805a..a56ac90 100644 --- a/src/game/language.ts +++ b/src/game/language.ts @@ -226,7 +226,7 @@ export class RandomWord extends Word { do { choice = Math.floor(Math.random() * this.choices.length) - } while (choice === this.history.last) + } while (choice === this.history.last && this.choices.length > 1) this.history.last = choice return this.choices[choice].configure(this.opt).toString()