mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
Fixed phase order
This commit is contained in:
parent
fec04e8f60
commit
7a69808f80
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user