Update phases.ts

Fixed a linting problem
This commit is contained in:
Tempoanon 2024-08-04 01:41:59 -04:00 committed by GitHub
parent d879436751
commit 22349da663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()) {