mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Place 'summary' option at front
Prevents selecting wrong option out of habit.
This commit is contained in:
parent
ba853bd5bf
commit
309f76d275
@ -550,6 +550,8 @@ export default class PartyUiHandler extends MessageUiHandler {
|
||||
let formChangeItemModifiers: PokemonFormChangeItemModifier[];
|
||||
|
||||
if (this.partyUiMode !== PartyUiMode.MOVE_MODIFIER && this.partyUiMode !== PartyUiMode.REMEMBER_MOVE_MODIFIER && (this.transferMode || this.partyUiMode !== PartyUiMode.MODIFIER_TRANSFER)) {
|
||||
this.options.push(PartyOption.SUMMARY); // Unconsequential option first
|
||||
|
||||
switch (this.partyUiMode) {
|
||||
case PartyUiMode.SWITCH:
|
||||
case PartyUiMode.FAINT_SWITCH:
|
||||
@ -590,8 +592,6 @@ export default class PartyUiHandler extends MessageUiHandler {
|
||||
break;
|
||||
}
|
||||
|
||||
this.options.push(PartyOption.SUMMARY);
|
||||
|
||||
if (pokemon.pauseEvolutions && pokemonEvolutions.hasOwnProperty(pokemon.species.speciesId))
|
||||
this.options.push(PartyOption.UNPAUSE_EVOLUTION);
|
||||
|
||||
@ -1028,4 +1028,4 @@ class PartyCancelButton extends Phaser.GameObjects.Container {
|
||||
this.partyCancelBg.setFrame('party_cancel');
|
||||
this.partyCancelPb.setFrame('party_pb');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user