mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Added setting that determines if Pokémon put into storage are healed
This commit is contained in:
@@ -191,7 +191,7 @@ class PokemonStorage
|
||||
raise "Trying to copy nil to storage" if !pkmn
|
||||
pkmn.time_form_set = nil
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
self[boxDst,indexDst] = pkmn
|
||||
end
|
||||
return true
|
||||
@@ -214,7 +214,7 @@ class PokemonStorage
|
||||
if box>=0
|
||||
pkmn.time_form_set = nil if pkmn.time_form_set
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
end
|
||||
self[box,i] = pkmn
|
||||
return true
|
||||
@@ -227,7 +227,7 @@ class PokemonStorage
|
||||
if @currentBox>=0
|
||||
pkmn.time_form_set = nil
|
||||
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
|
||||
pkmn.heal
|
||||
pkmn.heal if Settings::HEAL_STORED_POKEMON
|
||||
end
|
||||
for i in 0...maxPokemon(@currentBox)
|
||||
if self[@currentBox,i]==nil
|
||||
|
||||
Reference in New Issue
Block a user