Compare commits

..

1 Commits

Author SHA1 Message Date
Bertie690
625ce42077
Merge c51c5a2b34 into 800b8c9905 2025-08-04 12:55:25 -04:00
2 changed files with 7 additions and 6 deletions

View File

@ -1821,6 +1821,8 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
* @returns An array of {@linkcode PokemonMove}, as described above. * @returns An array of {@linkcode PokemonMove}, as described above.
*/ */
getMoveset(ignoreOverride = false): PokemonMove[] { getMoveset(ignoreOverride = false): PokemonMove[] {
const ret = !ignoreOverride && this.summonData.moveset ? this.summonData.moveset : this.moveset;
// Overrides moveset based on arrays specified in overrides.ts // Overrides moveset based on arrays specified in overrides.ts
let overrideArray: MoveId | Array<MoveId> = this.isPlayer() let overrideArray: MoveId | Array<MoveId> = this.isPlayer()
? Overrides.MOVESET_OVERRIDE ? Overrides.MOVESET_OVERRIDE
@ -1836,7 +1838,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
}); });
} }
return !ignoreOverride && this.summonData.moveset ? this.summonData.moveset : this.moveset; return ret;
} }
/** /**

View File

@ -827,11 +827,6 @@ export class PartyUiHandler extends MessageUiHandler {
globalScene.triggerPokemonFormChange(pokemon, SpeciesFormChangeItemTrigger, false, true); globalScene.triggerPokemonFormChange(pokemon, SpeciesFormChangeItemTrigger, false, true);
} }
// This is processed before the filter result since releasing does not depend on status.
if (option === PartyOption.RELEASE) {
return this.processReleaseOption(pokemon);
}
// If the pokemon is filtered out for this option, we cannot continue // If the pokemon is filtered out for this option, we cannot continue
const filterResult = this.getFilterResult(option, pokemon); const filterResult = this.getFilterResult(option, pokemon);
if (filterResult) { if (filterResult) {
@ -855,6 +850,10 @@ export class PartyUiHandler extends MessageUiHandler {
// PartyUiMode.POST_BATTLE_SWITCH (SEND_OUT) // PartyUiMode.POST_BATTLE_SWITCH (SEND_OUT)
// These are the options that need a callback // These are the options that need a callback
if (option === PartyOption.RELEASE) {
return this.processReleaseOption(pokemon);
}
if (this.partyUiMode === PartyUiMode.SPLICE) { if (this.partyUiMode === PartyUiMode.SPLICE) {
if (option === PartyOption.SPLICE) { if (option === PartyOption.SPLICE) {
(this.selectCallback as PartyModifierSpliceSelectCallback)(this.transferCursor, this.cursor); (this.selectCallback as PartyModifierSpliceSelectCallback)(this.transferCursor, this.cursor);