Including evolutions when filtering by biome

This commit is contained in:
Wlowscha 2025-01-06 02:45:17 +01:00
parent 1d90bff5e5
commit c78ea78be5
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
1 changed files with 2 additions and 2 deletions

View File

@ -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");