From 57fc651696c419852f74016e0529c2eda9a017f6 Mon Sep 17 00:00:00 2001 From: zaccie Date: Mon, 21 Apr 2025 00:40:43 +1200 Subject: [PATCH] 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) --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 27c4edea297..4a43d79955a 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -7157,8 +7157,8 @@ export class EnemyPokemon extends Pokemon { initBattleInfo(): void { if (!this.battleInfo) { this.battleInfo = new EnemyBattleInfo(); + this.battleInfo.initInfo(this); this.battleInfo.updateBossSegments(this); - this.battleInfo.initInfo(this); } else { this.battleInfo.updateBossSegments(this); }