mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +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)
|
||||
|
||||
@@ -146,7 +146,7 @@ module PokemonDebugMixin
|
||||
when 1 # Make not infectious
|
||||
if pokerus>0
|
||||
strain = pokerus/16
|
||||
p = strain<<4
|
||||
p = strain << 4
|
||||
pkmn.pokerus = p
|
||||
pbRefreshSingle(pkmnid)
|
||||
end
|
||||
@@ -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
|
||||
@@ -697,7 +698,7 @@ module PokemonDebugMixin
|
||||
val = pbMessageChooseNumber(
|
||||
_INTL("Set the new ID (max. 65535)."),params) { pbUpdate }
|
||||
pkmn.trainerID = val
|
||||
pkmn.trainerID |= val<<16
|
||||
pkmn.trainerID |= val << 16
|
||||
end
|
||||
end
|
||||
#===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user