From 309f76d275a61b8f9a48197918d55a8467718355 Mon Sep 17 00:00:00 2001 From: Lolligerhans <47504017+Lolligerhans@users.noreply.github.com> Date: Tue, 16 Apr 2024 01:21:31 +0200 Subject: [PATCH] Place 'summary' option at front Prevents selecting wrong option out of habit. --- src/ui/party-ui-handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index 834b994a070..07e3cb9c359 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -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'); } -} \ No newline at end of file +}