mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
[Bug] Fix order of operations when displaying enemy Boss level (#5685)
* order of operations in creating boss battleInfo fixed a bug where because of an order of operations error in this file it ignored the position update of the boss life value set in battle-info.ts (around line 562)
This commit is contained in:
parent
2cf0b51299
commit
d0be6a9274
@ -7162,8 +7162,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.updateBossSegments(this);
|
|
||||||
this.battleInfo.initInfo(this);
|
this.battleInfo.initInfo(this);
|
||||||
|
this.battleInfo.updateBossSegments(this);
|
||||||
} else {
|
} else {
|
||||||
this.battleInfo.updateBossSegments(this);
|
this.battleInfo.updateBossSegments(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user