mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Fix prevolution levels evolved form key check for default form
This commit is contained in:
parent
c1cce43daf
commit
832da738ab
@ -524,7 +524,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
|
||||
const allEvolvingPokemon = Object.keys(pokemonEvolutions);
|
||||
for (let p of allEvolvingPokemon) {
|
||||
for (let e of pokemonEvolutions[p]) {
|
||||
if (e.speciesId === this.speciesId && (!this.forms.length || e.evoFormKey === this.forms[this.formIndex].formKey)) {
|
||||
if (e.speciesId === this.speciesId && (!this.forms.length || (e.evoFormKey || '') === this.forms[this.formIndex].formKey)) {
|
||||
const speciesId = parseInt(p) as Species;
|
||||
let level = e.level;
|
||||
prevolutionLevels.push([ speciesId, level ]);
|
||||
|
Loading…
Reference in New Issue
Block a user