From c0db6b044cd5d475354e0328e07fbafdb0b3c520 Mon Sep 17 00:00:00 2001 From: ImperialSympathizer Date: Thu, 26 Sep 2024 17:34:50 -0400 Subject: [PATCH] fix catches not updating dex --- src/system/game-data.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index b2e199ad630..8c93dd05b91 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1579,10 +1579,10 @@ export class GameData { // If incrementCount === false (not a catch scenario), only update the pokemon's dex data if the Pokemon has already been marked as caught in dex // Prevents form changes, nature changes, etc. from unintentionally updating the dex data of a "rental" pokemon const speciesRootForm = pokemon.species.getRootSpeciesId(); - if (this.scene.gameData.dexData[speciesRootForm].caughtAttr) { - return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage); - } else { + if (!incrementCount && !this.scene.gameData.dexData[speciesRootForm].caughtAttr) { return Promise.resolve(false); + } else { + return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage); } }