From 3c4e5e0c13daa84e21bd97361054d794747b6d8c Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Fri, 30 May 2025 22:36:25 -0500 Subject: [PATCH] Allow new move to be selected with a to be forgotten --- src/phases/learn-move-phase.ts | 2 +- src/ui/summary-ui-handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phases/learn-move-phase.ts b/src/phases/learn-move-phase.ts index 68c35c2ab40..c585679ba4f 100644 --- a/src/phases/learn-move-phase.ts +++ b/src/phases/learn-move-phase.ts @@ -106,7 +106,7 @@ export class LearnMovePhase extends PlayerPartyMemberPokemonPhase { * > Which move should be forgotten? * * The game then goes `Mode.SUMMARY` to select a move to be forgotten. - * If a player does not select a move, the game goes to `this.rejectMoveAndEnd()`. + * If a player does not select a move or chooses the new move (`moveIndex === 4`), the game goes to `this.rejectMoveAndEnd()`. * If an old move is selected, the function then passes the `moveIndex` to `this.learnMove()` * @param move The Move to be learned * @param Pokemon The Pokemon learning the move diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index e15ba54a149..a6f640b436f 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -551,7 +551,7 @@ export default class SummaryUiHandler extends UiHandler { } } success = true; - } else if (this.moveCursor === 4 && this.summaryUiMode !== SummaryUiMode.LEARN_MOVE) { + } else if (this.moveCursor === 4) { return this.processInput(Button.CANCEL); } else { error = true;