mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed Pokémon forms resetting to 0 upon evolving
This commit is contained in:
@@ -300,7 +300,7 @@ class PokeBattle_Pokemon
|
||||
# Sets this Pokémon's nature to a particular nature.
|
||||
def setNature(value)
|
||||
@natureflag = getID(PBNatures,value)
|
||||
self.calcStats
|
||||
calcStats
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
@@ -633,7 +633,7 @@ class PokeBattle_Pokemon
|
||||
@name = PBSpecies.getName(@species) unless hasNickname
|
||||
@level = nil # In case growth rate is different for the new species
|
||||
@forcedForm = nil
|
||||
self.form = 0 # Also recalculates stats
|
||||
calcStats
|
||||
end
|
||||
|
||||
def isSpecies?(s)
|
||||
|
||||
@@ -526,6 +526,7 @@ module PokemonDebugMixin
|
||||
species = pbChooseSpeciesList(pkmn.species)
|
||||
if species!=0 && species!=pkmn.species
|
||||
pkmn.species = species
|
||||
pkmn.calcStats
|
||||
pbSeenForm(pkmn) if !settingUpBattle
|
||||
pbRefreshSingle(pkmnid)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user