mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-30 02:36:11 +00:00
Update phases.ts
Fixed a linting problem
This commit is contained in:
parent
d879436751
commit
22349da663
@ -4469,8 +4469,9 @@ export class SwitchPhase extends BattlePhase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Skip if the fainted party member has been revived already
|
// 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();
|
return super.end();
|
||||||
|
}
|
||||||
|
|
||||||
// Check if there is any space still in field
|
// 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()) {
|
if (this.isModal && this.scene.getPlayerField().filter(p => p.isAllowedInBattle() && p.isActive(true)).length >= this.scene.currentBattle.getBattlerCount()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user