Fix not updating legendary and mythical Pokemon seen stats

pull/291/head
Flashfyre 2024-04-25 13:20:32 -04:00
parent dcded952d5
commit daba4e9482
1 changed files with 4 additions and 0 deletions

View File

@ -1000,6 +1000,10 @@ export class GameData {
if (incrementCount) {
dexEntry.seenCount++;
this.gameStats.pokemonSeen++;
if (!trainer && pokemon.species.pseudoLegendary || pokemon.species.legendary)
this.gameStats.legendaryPokemonSeen++;
else if (!trainer && pokemon.species.mythical)
this.gameStats.mythicalPokemonSeen++;
if (!trainer && pokemon.isShiny())
this.gameStats.shinyPokemonSeen++;
}