Fixed bug in previous commit

This commit is contained in:
Maruno17
2021-03-12 23:25:42 +00:00
parent d8bf4b7fda
commit a0082c52f7

View File

@@ -566,7 +566,7 @@ class UnevolvedFormRestriction
($babySpeciesData[pokemon.species] = pokemon.species_data.get_baby_species)
return false if pokemon.species != baby
canEvolve=($canEvolve[pokemon.species]!=nil) ? $canEvolve[pokemon.species] :
($canEvolve[pokemon.species] = pokemon.species_data.get_evolutions(true).length > 0))
($canEvolve[pokemon.species] = pokemon.species_data.get_evolutions(true).length > 0)
return false if !canEvolve
return true
end