From 2596f0d671a5516c1a6b55a0fb4d256f9544e1cb Mon Sep 17 00:00:00 2001 From: Lylian Date: Mon, 4 Nov 2024 22:26:50 +0100 Subject: [PATCH] wild Zoroark creates an illusion according to the current biome --- src/field/pokemon.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 31443712405..4064dab8ed1 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -441,25 +441,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.loadAssets(false, true).then(() => this.playAnim()); } else { let availables: Species[] = []; + let randomIllusion: PokemonSpecies = this.scene.arena.randomSpecies(this.scene.currentBattle.waveIndex, this.level) if (this.isBoss()) { availables = [ Species.ENTEI, Species.RAIKOU, Species.SUICUNE ]; - } else { - const area: Species[] = [ - Species.HOUNDOUR, Species.SABLEYE, Species.PURRLOIN, Species.PAWNIARD, Species.NICKIT, - Species.IMPIDIMP, Species.MASCHIFF, Species.ABSOL, Species.SPIRITOMB, Species.DEINO, - ]; - - for (let species of area) { - for (const evolutionLevel of getPokemonSpecies(species).getEvolutionLevels()) { - if (evolutionLevel[1] && evolutionLevel[1] <= this.level) { - species = evolutionLevel[0]; - } - } - availables.push(species); - } - availables.push(this.species.name === getPokemonSpecies(Species.ZORUA).name ? Species.MURKROW : Species.HONCHKROW); + randomIllusion = getPokemonSpecies(availables[this.randSeedInt(availables.length)]); } - const randomIllusion: PokemonSpecies = getPokemonSpecies(availables[this.randSeedInt(availables.length)]); this.battleData.illusion = { active: true,