Also changing catching for mystery encounters

This commit is contained in:
Wlowscha 2025-03-18 23:02:22 +01:00
parent 7ff1ded78c
commit 22436ec839
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -741,6 +741,26 @@ export async function catchPokemon(
false, false,
); );
}, },
() => {
const attributes = {
shiny: pokemon.shiny,
variant: pokemon.variant,
form: pokemon.formIndex,
female: pokemon.gender === Gender.FEMALE,
};
globalScene.ui.setOverlayMode(
Mode.POKEDEX_PAGE,
pokemon.species,
pokemon.formIndex,
attributes,
null,
() => {
globalScene.ui.setMode(Mode.MESSAGE).then(() => {
promptRelease();
});
},
);
},
() => { () => {
globalScene.ui.setMode( globalScene.ui.setMode(
Mode.PARTY, Mode.PARTY,