From 2feb82e674eb48a6d8d9ba27fa2291ca48b80b72 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 30 Mar 2024 20:14:09 -0400 Subject: [PATCH] Fix infinite looping when Pokerus selections generate a loop --- src/ui/starter-select-ui-handler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 311b420e437..6636c967ce9 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -415,6 +415,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler { let dupe = false; do { + dupe = false; + generateSpecies(); for (let pc = 0; pc < c; pc++) {