mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-07 08:37:41 +00:00
Fix crash when updating name before info UI is initialized
This commit is contained in:
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…
x
Reference in New Issue
Block a user