mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 06:45:24 +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
|
const otherBattleInfo = globalScene.fieldUI
|
||||||
.getAll()
|
.getAll()
|
||||||
.slice(0, 4)
|
.slice(0, 4)
|
||||||
.filter(ui => ui instanceof BattleInfo && (ui as BattleInfo) instanceof PlayerBattleInfo === this.isPlayer())
|
.find(ui => ui instanceof BattleInfo && (ui as BattleInfo) instanceof PlayerBattleInfo === this.isPlayer());
|
||||||
.find(() => true);
|
|
||||||
if (!otherBattleInfo || !this.getFieldIndex()) {
|
if (!otherBattleInfo || !this.getFieldIndex()) {
|
||||||
globalScene.fieldUI.sendToBack(this.battleInfo);
|
globalScene.fieldUI.sendToBack(this.battleInfo);
|
||||||
globalScene.sendTextToBack(); // Push the top right text objects behind everything else
|
globalScene.sendTextToBack(); // Push the top right text objects behind everything else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user