mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
wild Zoroark creates an illusion according to the current biome
This commit is contained in:
parent
142c68a70a
commit
2596f0d671
@ -441,25 +441,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
this.loadAssets(false, true).then(() => this.playAnim());
|
this.loadAssets(false, true).then(() => this.playAnim());
|
||||||
} else {
|
} else {
|
||||||
let availables: Species[] = [];
|
let availables: Species[] = [];
|
||||||
|
let randomIllusion: PokemonSpecies = this.scene.arena.randomSpecies(this.scene.currentBattle.waveIndex, this.level)
|
||||||
if (this.isBoss()) {
|
if (this.isBoss()) {
|
||||||
availables = [ Species.ENTEI, Species.RAIKOU, Species.SUICUNE ];
|
availables = [ Species.ENTEI, Species.RAIKOU, Species.SUICUNE ];
|
||||||
} else {
|
randomIllusion = getPokemonSpecies(availables[this.randSeedInt(availables.length)]);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
const randomIllusion: PokemonSpecies = getPokemonSpecies(availables[this.randSeedInt(availables.length)]);
|
|
||||||
|
|
||||||
this.battleData.illusion = {
|
this.battleData.illusion = {
|
||||||
active: true,
|
active: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user