Fix crash when updating name before info UI is initialized
parent
94b43b9dc5
commit
0741478d24
|
@ -250,7 +250,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex));
|
this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex));
|
||||||
this.updateInfo(true);
|
if (this.battleInfo)
|
||||||
|
this.updateInfo(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract isPlayer(): boolean;
|
abstract isPlayer(): boolean;
|
||||||
|
|
Loading…
Reference in New Issue