Add wrapper for game mode

This commit is contained in:
Flashfyre committed 2024-03-14 16:26:57 -04:00
1 parent 76de0d01f9
commit 623d600e13
12 files changed
+139 -72

No files matched your search

+3 -1
View File
@@ -282,8 +282,10 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
this.lastTeraType = teraType;
}
if (nameUpdated || teraTypeUpdated)
if (nameUpdated || teraTypeUpdated) {
this.splicedIcon.setVisible(!!pokemon.fusionSpecies);
this.splicedIcon.setPositionRelative(this.nameText, this.nameText.displayWidth + this.genderText.displayWidth + 1 + (this.teraIcon.visible ? this.teraIcon.displayWidth + 1 : 0), 1.5);
}
if (this.lastStatus !== (pokemon.status?.effect || StatusEffect.NONE)) {
this.lastStatus = pokemon.status?.effect || StatusEffect.NONE;