From 41841ace1ba5537b9c69c4ae67f4911a6d91b667 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:13:16 +0100 Subject: [PATCH] Fix to getStarterSpeciesId to work with all-unlocks files --- src/ui/pokedex-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/pokedex-ui-handler.ts b/src/ui/pokedex-ui-handler.ts index 5024ec3ab89..fe535f747b4 100644 --- a/src/ui/pokedex-ui-handler.ts +++ b/src/ui/pokedex-ui-handler.ts @@ -787,7 +787,7 @@ export default class PokedexUiHandler extends MessageUiHandler { } getStarterSpeciesId(speciesId): number { - if (this.scene.gameData.starterData.hasOwnProperty(speciesId)) { + if (speciesStarterCosts.hasOwnProperty(speciesId)) { return speciesId; } else { return pokemonStarters[speciesId];