[Bug] Fix override move animations not loading for enemy Pokemon

https://github.com/pagefaultgames/pokerogue/pull/6214
This commit is contained in:
Acelynn Zhang 2025-08-04 17:33:01 -04:00 committed by GitHub
parent 800b8c9905
commit 40443d2afa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
/**