Allow new move to be selected with a to be forgotten

This commit is contained in:
Sirz Benjie 2025-05-30 22:36:25 -05:00
parent a4cdd4a3af
commit 3c4e5e0c13
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;