mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Added evolution method for Galarian Yamask, minor refactoring in battle code, a Pokémon's ability no longer needs resetting when changing its ability_index
This commit is contained in:
@@ -587,6 +587,7 @@ class PokemonEvolutionScene
|
||||
@pokemon.species = @newspecies
|
||||
@pokemon.form = 0 if @pokemon.isSpecies?(:MOTHIM)
|
||||
@pokemon.calc_stats
|
||||
@pokemon.ready_to_evolve = false
|
||||
# See and own evolved species
|
||||
$player.pokedex.register(@pokemon)
|
||||
$player.pokedex.set_owned(@newspecies)
|
||||
|
||||
@@ -1727,7 +1727,11 @@ class PokemonStorageScreen
|
||||
end
|
||||
if heldpoke || selected[0]==-1
|
||||
p = (heldpoke) ? heldpoke : @storage[-1,index]
|
||||
p.heal if Settings::HEAL_STORED_POKEMON
|
||||
if Settings::HEAL_STORED_POKEMON
|
||||
old_ready_evo = p.ready_to_evolve
|
||||
p.heal
|
||||
p.ready_to_evolve = old_ready_evo
|
||||
end
|
||||
end
|
||||
@scene.pbStore(selected,heldpoke,destbox,firstfree)
|
||||
if heldpoke
|
||||
@@ -1771,7 +1775,11 @@ class PokemonStorageScreen
|
||||
pbDisplay("Please remove the mail.")
|
||||
return
|
||||
end
|
||||
@heldpkmn.heal if Settings::HEAL_STORED_POKEMON if box >= 0
|
||||
if Settings::HEAL_STORED_POKEMON && box >= 0
|
||||
old_ready_evo = @heldpkmn.ready_to_evolve
|
||||
@heldpkmn.heal
|
||||
@heldpkmn.ready_to_evolve = old_ready_evo
|
||||
end
|
||||
@scene.pbPlace(selected,@heldpkmn)
|
||||
@storage[box,index] = @heldpkmn
|
||||
if box==-1
|
||||
@@ -1796,7 +1804,11 @@ class PokemonStorageScreen
|
||||
pbDisplay("Please remove the mail.")
|
||||
return false
|
||||
end
|
||||
@heldpkmn.heal if Settings::HEAL_STORED_POKEMON if box >= 0
|
||||
if Settings::HEAL_STORED_POKEMON && box >= 0
|
||||
old_ready_evo = @heldpkmn.ready_to_evolve
|
||||
@heldpkmn.heal
|
||||
@heldpkmn.ready_to_evolve = old_ready_evo
|
||||
end
|
||||
@scene.pbSwap(selected,@heldpkmn)
|
||||
tmp = @storage[box,index]
|
||||
@storage[box,index] = @heldpkmn
|
||||
|
||||
Reference in New Issue
Block a user