order of operations in creating boss battleInfo

fixed a bug where because of an order of operations in this file it affected the position (ignored the position) of the boss life value set in battle-info.ts (around line 562)
This commit is contained in:
zaccie 2025-04-21 00:40:43 +12:00
parent 54ce58411b
commit 57fc651696

View File

@ -7157,8 +7157,8 @@ export class EnemyPokemon extends Pokemon {
initBattleInfo(): void { initBattleInfo(): void {
if (!this.battleInfo) { if (!this.battleInfo) {
this.battleInfo = new EnemyBattleInfo(); this.battleInfo = new EnemyBattleInfo();
this.battleInfo.initInfo(this);
this.battleInfo.updateBossSegments(this); this.battleInfo.updateBossSegments(this);
this.battleInfo.initInfo(this);
} else { } else {
this.battleInfo.updateBossSegments(this); this.battleInfo.updateBossSegments(this);
} }