From 525cf41b5e442c6ff27859405266763e70b76841 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 11 Apr 2023 00:56:05 -0400 Subject: [PATCH] Fix UI layering issue with evolution screen --- README.md | 1 + src/pokemon.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91d35e665b0..a1c57ce50ef 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ - Moves - Move logic - Can't use when PP consumed + - Multi hit moves should still show 1 time(s) when hitting once - Abilities - Ability logic - Ability activation indicator (?) diff --git a/src/pokemon.ts b/src/pokemon.ts index 6671deeda81..952fc045205 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -118,7 +118,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.calculateStats(); - (scene as BattleScene).fieldUI.add(this.battleInfo); + (scene as BattleScene).fieldUI.addAt(this.battleInfo, 0); this.battleInfo.initInfo(this);