Co-authored-by: Frutescens <info@laptop>
This commit is contained in:
Mumble 2024-07-24 15:37:20 -07:00 committed by GitHub
parent 64d9c11713
commit 45d9c65a3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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, () => {