Fix fully evolved species with mega evolutions treated as middle for fusions
This commit is contained in:
1 parent
35747c3dd6
commit
7c1e82d08c
1 file changed
+1
-1
@@ -311,7 +311,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || !pokemonEvolutions[this.speciesId].filter(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1).length)
|
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || !pokemonEvolutions[this.speciesId].find(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1))
|
||||||
return this.speciesId;
|
return this.speciesId;
|
||||||
|
|
||||||
const evolutions = pokemonEvolutions[this.speciesId];
|
const evolutions = pokemonEvolutions[this.speciesId];
|
||||||
|
|||||||
Reference in new issue
Block a user