From 88e72fb66675ccc32deb3b58a2fe300a1e50dcf1 Mon Sep 17 00:00:00 2001 From: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:10:17 -0400 Subject: [PATCH] Update src/system/game-data.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> --- src/system/game-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 91eb66d6d48..f9f4d060cf3 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1586,7 +1586,7 @@ 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) { + if (this.scene.gameData.dexData[speciesRootForm].caughtAttr) { return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage); } else { return new Promise(resolve => resolve(false));