mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Pokémon in storage no longer recalculate their form
This commit is contained in:
@@ -190,8 +190,6 @@ class PokemonStorage
|
||||
else # Copying into box
|
||||
pkmn = self[boxSrc,indexSrc]
|
||||
raise "Trying to copy nil to storage" if !pkmn
|
||||
pkmn.time_form_set = nil
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
self[boxDst,indexDst] = pkmn
|
||||
end
|
||||
@@ -212,11 +210,7 @@ class PokemonStorage
|
||||
def pbMoveCaughtToBox(pkmn,box)
|
||||
for i in 0...maxPokemon(box)
|
||||
if self[box,i]==nil
|
||||
if box>=0
|
||||
pkmn.time_form_set = nil if pkmn.time_form_set
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
end
|
||||
pkmn.heal if box >= 0 && Settings::HEAL_STORED_POKEMON
|
||||
self[box,i] = pkmn
|
||||
return true
|
||||
end
|
||||
@@ -225,11 +219,7 @@ class PokemonStorage
|
||||
end
|
||||
|
||||
def pbStoreCaught(pkmn)
|
||||
if @currentBox>=0
|
||||
pkmn.time_form_set = nil
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
end
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON if @currentBox >= 0
|
||||
for i in 0...maxPokemon(@currentBox)
|
||||
if self[@currentBox,i]==nil
|
||||
self[@currentBox,i] = pkmn
|
||||
|
||||
Reference in New Issue
Block a user