From c78ea78be5a13c9a654ad667382f3e327899bde2 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:45:17 +0100 Subject: [PATCH] Including evolutions when filtering by biome --- src/ui/pokedex-ui-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/pokedex-ui-handler.ts b/src/ui/pokedex-ui-handler.ts index e1f6a5d4aa4..5024ec3ab89 100644 --- a/src/ui/pokedex-ui-handler.ts +++ b/src/ui/pokedex-ui-handler.ts @@ -1367,8 +1367,8 @@ export default class PokedexUiHandler extends MessageUiHandler { // We get biomes for both the mon and its starters to ensure that evolutions get the correct filters. // TODO: We might also need to do it the other way around. - // const biomes = catchableSpecies[container.species.speciesId].concat(catchableSpecies[this.getStarterSpeciesId(container.species.speciesId)]).map(b => Biome[b.biome]); - const biomes = catchableSpecies[container.species.speciesId].map(b => Biome[b.biome]); + const biomes = catchableSpecies[container.species.speciesId].concat(catchableSpecies[this.getStarterSpeciesId(container.species.speciesId)]).map(b => Biome[b.biome]); + //const biomes = catchableSpecies[container.species.speciesId].map(b => Biome[b.biome]); // if (uncatchableSpecies.includes(container.species.speciesId) && biomes.length === 0) { if (biomes.length === 0) { biomes.push("Uncatchable");