[Bug] Skip forced switch if the fainted party member has been revived already (#1236)
This commit is contained in:
parent
fdcf21592b
commit
ca64c4aaf2
|
@ -4468,6 +4468,10 @@ export class SwitchPhase extends BattlePhase {
|
|||
return super.end();
|
||||
}
|
||||
|
||||
// Skip if the fainted party member has been revived already
|
||||
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()) {
|
||||
return super.end();
|
||||
|
|
Loading…
Reference in New Issue