mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed a Pokémon's form being reset upon evolving, fixed Pokémon not using Struggle
This commit is contained in:
@@ -629,7 +629,8 @@ class PokeBattle_Pokemon
|
||||
#=============================================================================
|
||||
def species=(value)
|
||||
hasNickname = nicknamed?
|
||||
@species, @form = pbGetSpeciesFromFSpecies(value)
|
||||
@species, new_form = pbGetSpeciesFromFSpecies(value)
|
||||
@form = new_form if @species != value
|
||||
@name = PBSpecies.getName(@species) unless hasNickname
|
||||
@level = nil # In case growth rate is different for the new species
|
||||
@forcedForm = nil
|
||||
|
||||
Reference in New Issue
Block a user