From 45d9c65a3efc62404c42bd7dac04de8445117810 Mon Sep 17 00:00:00 2001 From: Mumble Date: Wed, 24 Jul 2024 15:37:20 -0700 Subject: [PATCH] Bug Fix (#3129) Co-authored-by: Frutescens --- src/phases.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 65ec43f1eae..d4bc1dc5c2a 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -4917,7 +4917,6 @@ export class AttemptCapturePhase extends PokemonPhase { } }, onComplete: () => { - this.scene.gameData.setPokemonCaught(pokemon); this.catch(); } }); @@ -5014,7 +5013,7 @@ export class AttemptCapturePhase extends PokemonPhase { } }); }; - Promise.all([pokemon.hideInfo()]).then(() => { + Promise.all([pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon)]).then(() => { if (this.scene.getParty().length === 6) { const promptRelease = () => { this.scene.ui.showText(i18next.t("battle:partyFull", { pokemonName: getPokemonNameWithAffix(pokemon) }), null, () => {