wild Zoroark creates an illusion according to the current biome

This commit is contained in:
Lylian 2024-11-04 22:27:34 +01:00
parent 2596f0d671
commit 8351866d0d

View File

@ -441,7 +441,7 @@ 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)
let randomIllusion: PokemonSpecies = this.scene.arena.randomSpecies(this.scene.currentBattle.waveIndex, this.level);
if (this.isBoss()) {
availables = [ Species.ENTEI, Species.RAIKOU, Species.SUICUNE ];
randomIllusion = getPokemonSpecies(availables[this.randSeedInt(availables.length)]);