mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-12 10:29:30 +02:00
Compare commits
3 Commits
cd683b9e31
...
47794d4e40
Author | SHA1 | Date | |
---|---|---|---|
|
47794d4e40 | ||
|
5bfcb1d379 | ||
|
40443d2afa |
@ -1821,8 +1821,6 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
* @returns An array of {@linkcode PokemonMove}, as described above.
|
||||
*/
|
||||
getMoveset(ignoreOverride = false): PokemonMove[] {
|
||||
const ret = !ignoreOverride && this.summonData.moveset ? this.summonData.moveset : this.moveset;
|
||||
|
||||
// Overrides moveset based on arrays specified in overrides.ts
|
||||
let overrideArray: MoveId | Array<MoveId> = this.isPlayer()
|
||||
? Overrides.MOVESET_OVERRIDE
|
||||
@ -1838,7 +1836,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
});
|
||||
}
|
||||
|
||||
return ret;
|
||||
return !ignoreOverride && this.summonData.moveset ? this.summonData.moveset : this.moveset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -827,6 +827,11 @@ export class PartyUiHandler extends MessageUiHandler {
|
||||
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
|
||||
const filterResult = this.getFilterResult(option, pokemon);
|
||||
if (filterResult) {
|
||||
@ -850,10 +855,6 @@ export class PartyUiHandler extends MessageUiHandler {
|
||||
// PartyUiMode.POST_BATTLE_SWITCH (SEND_OUT)
|
||||
|
||||
// These are the options that need a callback
|
||||
if (option === PartyOption.RELEASE) {
|
||||
return this.processReleaseOption(pokemon);
|
||||
}
|
||||
|
||||
if (this.partyUiMode === PartyUiMode.SPLICE) {
|
||||
if (option === PartyOption.SPLICE) {
|
||||
(this.selectCallback as PartyModifierSpliceSelectCallback)(this.transferCursor, this.cursor);
|
||||
|
Loading…
Reference in New Issue
Block a user