From daba4e94820fd91a43a623ec2f88b43236459f91 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 25 Apr 2024 13:20:32 -0400 Subject: [PATCH] Fix not updating legendary and mythical Pokemon seen stats --- src/system/game-data.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index de9406aef84..cd8f38d9a99 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -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++; }