From 4d69d3b2192f02c0393bc9cad42a39418be26d1d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 21 Apr 2023 00:04:48 -0400 Subject: [PATCH] Fix evolved enemy Pokemon icons not being initialized --- src/pokemon.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 0dfbadeb7..fc7591e9e 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -149,6 +149,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.add(tintSprite); this.add(zoomSprite); + this.getSpeciesForm().generateIconAnim(scene, this.gender === Gender.FEMALE, formIndex); + if (this.shiny) { const shinySparkle = this.scene.add.sprite(0, 0, 'shiny'); shinySparkle.setVisible(false); @@ -802,8 +804,7 @@ export class PlayerPokemon extends Pokemon { constructor(scene: BattleScene, species: PokemonSpecies, level: integer, formIndex: integer, gender?: Gender, shiny?: boolean, dataSource?: Pokemon) { super(scene, 106, 148, species, level, formIndex, gender, shiny, dataSource); - - this.getSpeciesForm().generateIconAnim(scene, this.gender === Gender.FEMALE, formIndex); + this.generateCompatibleTms(); }