diff --git a/src/battle-scene.ts b/src/battle-scene.ts index de36c9d1e2d..978c3afab01 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1204,7 +1204,9 @@ export class BattleScene extends SceneBase { this.updateScoreText(); this.scoreText.setVisible(false); - [this.luckLabelText, this.luckText].map(t => t.setVisible(false)); + [this.luckLabelText, this.luckText].forEach(t => { + t.setVisible(false); + }); this.newArena(Overrides.STARTING_BIOME_OVERRIDE || BiomeId.TOWN); @@ -2711,7 +2713,9 @@ export class BattleScene extends SceneBase { } } - this.party.map(p => p.updateInfo(instant)); + this.party.forEach(p => { + p.updateInfo(instant); + }); } else { const args = [this]; if (modifier.shouldApply(...args)) { diff --git a/src/loading-scene.ts b/src/loading-scene.ts index d2b4a76ef10..6ff39ef3dde 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -447,7 +447,9 @@ export class LoadingScene extends SceneBase { ); if (!mobile) { - loadingGraphics.map(g => g.setVisible(false)); + loadingGraphics.forEach(g => { + g.setVisible(false); + }); } const intro = this.add.video(0, 0);