Skip to content

Commit

Permalink
Update phases.ts
Browse files Browse the repository at this point in the history
Fixed a linting problem
  • Loading branch information
Tempo-anon authored Aug 4, 2024
1 parent d879436 commit 22349da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 22349da

Please sign in to comment.