Fix to getStarterSpeciesId to work with all-unlocks files

This commit is contained in:
Wlowscha 2025-01-06 21:13:16 +01:00
parent 3597d34e44
commit 41841ace1b
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
1 changed files with 1 additions and 1 deletions

View File

@ -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];