mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Allow new move to be selected with a to be forgotten
This commit is contained in:
parent
a4cdd4a3af
commit
3c4e5e0c13
@ -106,7 +106,7 @@ export class LearnMovePhase extends PlayerPartyMemberPokemonPhase {
|
|||||||
* > Which move should be forgotten?
|
* > Which move should be forgotten?
|
||||||
*
|
*
|
||||||
* The game then goes `Mode.SUMMARY` to select a move to 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()`
|
* If an old move is selected, the function then passes the `moveIndex` to `this.learnMove()`
|
||||||
* @param move The Move to be learned
|
* @param move The Move to be learned
|
||||||
* @param Pokemon The Pokemon learning the move
|
* @param Pokemon The Pokemon learning the move
|
||||||
|
@ -551,7 +551,7 @@ export default class SummaryUiHandler extends UiHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
success = true;
|
success = true;
|
||||||
} else if (this.moveCursor === 4 && this.summaryUiMode !== SummaryUiMode.LEARN_MOVE) {
|
} else if (this.moveCursor === 4) {
|
||||||
return this.processInput(Button.CANCEL);
|
return this.processInput(Button.CANCEL);
|
||||||
} else {
|
} else {
|
||||||
error = true;
|
error = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user