diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 365d8c545f1..c25d30b8b98 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -128,7 +128,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { const randAbilityIndex = Utils.randSeedInt(2); this.species = species; - this.illusion = {active: false, available: true}; + this.illusion = { active: false, available: true }; this.pokeball = dataSource?.pokeball || PokeballType.POKEBALL; this.level = level; diff --git a/src/phases.ts b/src/phases.ts index 6cc1db399c0..f4f4deefa69 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -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();