Additional #isSpecies? and #hasItem? refactoring

This commit is contained in:
jonisavo
2020-09-06 20:58:13 +03:00
parent 6252407160
commit 0b1bab3b5c
8 changed files with 13 additions and 17 deletions

View File

@@ -587,7 +587,7 @@ class PokemonEvolutionScene
# Modify Pokémon to make it evolved
@pokemon.species = @newspecies
@pokemon.name = newspeciesname if @pokemon.name==oldspeciesname
@pokemon.form = 0 if isConst?(@pokemon.species,PBSpecies,:MOTHIM)
@pokemon.form = 0 if @pokemon.isSpecies?(:MOTHIM)
@pokemon.calcStats
# See and own evolved species
$Trainer.seen[@newspecies] = true