diff --git a/src/phases.ts b/src/phases.ts index 91741bacd2b..038907d9400 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -702,7 +702,7 @@ export class EncounterPhase extends BattlePhase { } if (!this.loaded) - this.scene.gameData.setPokemonSeen(enemyPokemon); + this.scene.gameData.setPokemonSeen(enemyPokemon, true, battle.battleType === BattleType.TRAINER); if (enemyPokemon.species.speciesId === Species.ETERNATUS) { if (this.scene.gameMode.isClassic && (battle.battleSpec === BattleSpec.FINAL_BOSS || this.scene.gameMode.isWaveFinal(battle.waveIndex))) { diff --git a/src/system/game-data.ts b/src/system/game-data.ts index c5b9f32cf9c..0c176e446d9 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -993,13 +993,13 @@ export class GameData { this.starterData = starterData; } - setPokemonSeen(pokemon: Pokemon, incrementCount: boolean = true): void { + setPokemonSeen(pokemon: Pokemon, incrementCount: boolean = true, trainer: boolean = false): void { const dexEntry = this.dexData[pokemon.species.speciesId]; dexEntry.seenAttr |= pokemon.getDexAttr(); if (incrementCount) { dexEntry.seenCount++; this.gameStats.pokemonSeen++; - if (pokemon.isShiny()) + if (!trainer && pokemon.isShiny()) this.gameStats.shinyPokemonSeen++; } }