Added setting that determines if Pokémon put into storage are healed

This commit is contained in:
Maruno17
2021-06-21 23:28:51 +01:00
parent 43900dca8c
commit 9344ef8d04
5 changed files with 47 additions and 26 deletions

View File

@@ -955,7 +955,13 @@ class Interpreter
# * Recover All
#-----------------------------------------------------------------------------
def command_314
$Trainer.heal_party if @parameters[0] == 0
if @parameters[0] == 0
if Settings::HEAL_STORED_POKEMON # No need to heal stored Pokémon
$Trainer.heal_party
else
pbEachPokemon { |pkmn, box| pkmn.heal } # Includes party Pokémon
end
end
return true
end