Merge branch 'pr-illusion' of https://github.com/PyGaVS/pokerogue into pr-illusion

This commit is contained in:
Lylian 2024-08-05 02:13:14 +02:00
commit b552ced042
2 changed files with 1 additions and 3 deletions

View File

@ -1592,8 +1592,6 @@ export class SwitchSummonPhase extends SummonPhase {
}
const pokemon: Pokemon = this.getPokemon();
// if doReturn === False OR slotIndex !== -1 (slotIndex is valid) and the pokemon doesn't exist/is false
// then switchAndSummon(), manually pick pokemon to switch into
if (!this.doReturn || (this.slotIndex !== -1 && !(this.player ? this.scene.getParty() : this.scene.getEnemyParty())[this.slotIndex])) {
if (this.player) {
return this.switchAndSummon();