mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 22:35:20 +01:00
[Misc] Removed instance of find(() => true) from BattleInfo code
https://github.com/pagefaultgames/pokerogue/pull/6673
This commit is contained in:
parent
bcc79a6118
commit
85fcb20271
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user