From 22349da663001ecc9d58994e6ac89748f65195fc Mon Sep 17 00:00:00 2001 From: Tempoanon <163687446+Tempo-anon@users.noreply.github.com> Date: Sun, 4 Aug 2024 01:41:59 -0400 Subject: [PATCH] Update phases.ts Fixed a linting problem --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index a38fff8b077..3c4d7f1ce44 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -4469,8 +4469,9 @@ export class SwitchPhase extends BattlePhase { } // Skip if the fainted party member has been revived already - if (this.isModal && !this.scene.getParty()[this.fieldIndex].isFainted()) + if (this.isModal && !this.scene.getParty()[this.fieldIndex].isFainted()) { return super.end(); + } // Check if there is any space still in field if (this.isModal && this.scene.getPlayerField().filter(p => p.isAllowedInBattle() && p.isActive(true)).length >= this.scene.currentBattle.getBattlerCount()) {