Fixed using pkmn.species= with a form's internal name not setting the actual species. Fixed Shadow Pokémon not being able to have different Shadow Moves for particular forms.

This commit is contained in:
Maruno17
2020-11-11 21:07:26 +00:00
parent c87a578021
commit 5534f338e7
3 changed files with 13 additions and 11 deletions

View File

@@ -629,7 +629,7 @@ class PokeBattle_Pokemon
#=============================================================================
def species=(value)
hasNickname = nicknamed?
@species = value
@species, @form = pbGetSpeciesFromFSpecies(value)
@name = PBSpecies.getName(@species) unless hasNickname
@level = nil # In case growth rate is different for the new species
@forcedForm = nil