Skip to content

Commit 88ecabe

Browse files
committed
update generateIllusion method
1 parent f79174e commit 88ecabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/field/pokemon.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
336336
pokemon.loadAssets(false).then(() => pokemon.playAnim());
337337
} else {
338338
const availables = [Species.ENTEI, Species.RAIKOU, Species.SUICUNE];
339-
const randomIllusion: PokemonSpecies = getPokemonSpecies(availables[this.randSeedInt(3, 0)]);
339+
const randomIllusion: PokemonSpecies = getPokemonSpecies(availables[this.randSeedInt(3)]);
340340
pokemon.illusion = {active: true, available: true, species: randomIllusion, name: pokemon.name};
341341
pokemon.name = randomIllusion.name;
342342
pokemon.loadAssets(false).then(() => pokemon.playAnim());

0 commit comments

Comments
 (0)