Fixed phase order

This commit is contained in:
Frutescens 2024-07-02 21:09:14 -07:00
parent fec04e8f60
commit 7a69808f80

View File

@ -4891,7 +4891,6 @@ export class AttemptCapturePhase extends PokemonPhase {
}
},
onComplete: () => {
this.scene.unshiftPhase(new VictoryPhase(this.scene, this.battlerIndex));
this.scene.gameData.setPokemonCaught(pokemon);
this.catch();
}
@ -4960,6 +4959,7 @@ export class AttemptCapturePhase extends PokemonPhase {
this.scene.ui.showText(i18next.t("battle:pokemonCaught", { pokemonName: pokemon.name }), null, () => {
const end = () => {
this.scene.unshiftPhase(new VictoryPhase(this.scene, this.battlerIndex));
this.scene.pokemonInfoContainer.hide();
this.removePb();
this.end();