Skip to content

Commit

Permalink
fix(ui): Fixed EV count for routes with duplicate pokemon (pokeclicke…
Browse files Browse the repository at this point in the history
…r#5701)

Co-authored-by: CypherX <[email protected]>
  • Loading branch information
RedzepR and CypherX authored Dec 8, 2024
1 parent 7945d26 commit ca56217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/wildBattle/RouteHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class RouteHelper {
}

public static routePokerusEVs(route:number, region:GameConstants.Region): string {
const possiblePokemon: PokemonNameType[] = RouteHelper.getAvailablePokemonList(route, region);
const possiblePokemon: PokemonNameType[] = [...new Set(RouteHelper.getAvailablePokemonList(route, region))];
if (this.minPokerus(possiblePokemon) == GameConstants.Pokerus.Resistant) {
return 'All Pokémon on this route are resistant!';
}
Expand Down

0 comments on commit ca56217

Please sign in to comment.