mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 03:19:28 +02:00
Compare commits
1 Commits
ba6ab4c781
...
625ce42077
Author | SHA1 | Date | |
---|---|---|---|
|
625ce42077 |
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user