From 85fcb202711fe5953aaeff562d151637dc1a81f5 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Tue, 21 Oct 2025 00:20:39 -0400 Subject: [PATCH] [Misc] Removed instance of `find(() => true)` from `BattleInfo` code https://github.com/pagefaultgames/pokerogue/pull/6673 --- src/field/pokemon.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 458226d1c1a..0105db6ff71 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -3150,8 +3150,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container { const otherBattleInfo = globalScene.fieldUI .getAll() .slice(0, 4) - .filter(ui => ui instanceof BattleInfo && (ui as BattleInfo) instanceof PlayerBattleInfo === this.isPlayer()) - .find(() => true); + .find(ui => ui instanceof BattleInfo && (ui as BattleInfo) instanceof PlayerBattleInfo === this.isPlayer()); if (!otherBattleInfo || !this.getFieldIndex()) { globalScene.fieldUI.sendToBack(this.battleInfo); globalScene.sendTextToBack(); // Push the top right text objects behind everything else