Fix evolved enemy Pokemon icons not being initialized
parent
4eb44003b2
commit
4d69d3b219
|
@ -149,6 +149,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
this.add(tintSprite);
|
this.add(tintSprite);
|
||||||
this.add(zoomSprite);
|
this.add(zoomSprite);
|
||||||
|
|
||||||
|
this.getSpeciesForm().generateIconAnim(scene, this.gender === Gender.FEMALE, formIndex);
|
||||||
|
|
||||||
if (this.shiny) {
|
if (this.shiny) {
|
||||||
const shinySparkle = this.scene.add.sprite(0, 0, 'shiny');
|
const shinySparkle = this.scene.add.sprite(0, 0, 'shiny');
|
||||||
shinySparkle.setVisible(false);
|
shinySparkle.setVisible(false);
|
||||||
|
@ -803,7 +805,6 @@ export class PlayerPokemon extends Pokemon {
|
||||||
constructor(scene: BattleScene, species: PokemonSpecies, level: integer, formIndex: integer, gender?: Gender, shiny?: boolean, dataSource?: 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);
|
super(scene, 106, 148, species, level, formIndex, gender, shiny, dataSource);
|
||||||
|
|
||||||
this.getSpeciesForm().generateIconAnim(scene, this.gender === Gender.FEMALE, formIndex);
|
|
||||||
this.generateCompatibleTms();
|
this.generateCompatibleTms();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue