From 46a9ad1732d075cb724abbc821370a4bac3ff190 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 29 Nov 2024 22:33:59 -0500 Subject: [PATCH] Apply suggestions from code review --- src/data/move.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index d6f5d23845d..24e9e7f43fd 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -5976,7 +5976,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr { } // Find indices of off-field Pokemon that are eligible to be switched into - const eligibleNewIndices = [] as number[]; + const eligibleNewIndices: number[] = []; switchOutTarget.scene.getPlayerParty().forEach((pokemon, index) => { if (pokemon.isAllowedInBattle() && !pokemon.isOnField()) { eligibleNewIndices.push(index); @@ -6020,7 +6020,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr { return false; } else if (user.scene.currentBattle.battleType !== BattleType.WILD) { // Switch out logic for enemy trainers // Find indices of off-field Pokemon that are eligible to be switched into - const eligibleNewIndices = [] as number[]; + const eligibleNewIndices: number[] = []; switchOutTarget.scene.getEnemyParty().forEach((pokemon, index) => { if (pokemon.isAllowedInBattle() && !pokemon.isOnField()) { eligibleNewIndices.push(index);