mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-01 11:16:21 +00:00
Fixed issues described by HopsWas
This commit is contained in:
parent
bd86fc6459
commit
14ff290b74
@ -4820,7 +4820,7 @@ export class AttemptCapturePhase extends PokemonPhase {
|
||||
}
|
||||
},
|
||||
onComplete: () => {
|
||||
this.scene.unshiftPhase(new VictoryPhase(this.scene, this.battlerIndex)); this.catch();
|
||||
this.scene.unshiftPhase(new VictoryPhase(this.scene, this.battlerIndex)); this.scene.gameData.setPokemonCaught(pokemon); this.catch();
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -4915,7 +4915,7 @@ export class AttemptCapturePhase extends PokemonPhase {
|
||||
}
|
||||
});
|
||||
};
|
||||
Promise.all([ pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon) ]).then(() => {
|
||||
Promise.all([ pokemon.hideInfo() ]).then(() => {
|
||||
if (this.scene.getParty().length === 6) {
|
||||
const promptRelease = () => {
|
||||
this.scene.ui.showText(i18next.t("battle:partyFull", { pokemonName: pokemon.name }), null, () => {
|
||||
|
@ -485,10 +485,10 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
||||
this.hideMoveSelect();
|
||||
} else {
|
||||
if (!ui.getMessageHandler().onActionInput) {
|
||||
ui.setMode(Mode.PARTY);
|
||||
} else {
|
||||
if (ui.getMessageHandler().onActionInput) {
|
||||
ui.setMode(Mode.MESSAGE);
|
||||
} else {
|
||||
ui.setMode(Mode.PARTY);
|
||||
}
|
||||
}
|
||||
success = true;
|
||||
@ -499,6 +499,8 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
case Button.DOWN:
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
||||
break;
|
||||
} else if (ui.getMessageHandler().onActionInput) {
|
||||
break;
|
||||
}
|
||||
const isDown = button === Button.DOWN;
|
||||
const party = this.scene.getParty();
|
||||
|
Loading…
Reference in New Issue
Block a user