From f77c32d5f8b7d8f3d157b75c09874c072e173c71 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sun, 25 Aug 2024 17:07:54 -0700 Subject: [PATCH] some more checks --- src/phases/learn-move-phase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phases/learn-move-phase.ts b/src/phases/learn-move-phase.ts index fdbdbb86c7f..33260260ce1 100644 --- a/src/phases/learn-move-phase.ts +++ b/src/phases/learn-move-phase.ts @@ -74,7 +74,7 @@ export class LearnMovePhase extends PlayerPartyMemberPokemonPhase { this.scene.ui.showText(i18next.t("battle:learnMoveForgetQuestion"), null, () => { this.scene.ui.setModeWithoutClear(Mode.SUMMARY, pokemon, SummaryUiMode.LEARN_MOVE, move, (moveIndex: integer) => { if (moveIndex === 4) { - this.rejectMoveAndEnd(move, pokemon); + this.scene.ui.setMode(this.messageMode).then(() => this.rejectMoveAndEnd(move, pokemon)); } const forgetSuccessText = i18next.t("battle:learnMoveForgetSuccess", { pokemonName: getPokemonNameWithAffix(pokemon), moveName: pokemon.moveset[moveIndex]!.getName() }); const fullText = [i18next.t("battle:countdownPoof"), forgetSuccessText, i18next.t("battle:learnMoveAnd")].join("$"); @@ -96,7 +96,7 @@ export class LearnMovePhase extends PlayerPartyMemberPokemonPhase { () => { this.scene.ui.setMode(this.messageMode); this.scene.ui.showText(i18next.t("battle:learnMoveNotLearned", { pokemonName: getPokemonNameWithAffix(pokemon), moveName: move.name }), null, () => { - this.unshiftPhase(); this.end(); + this.end(); }, null, true); }, () => {