Fixed evolution reviving fainted Pokémon, fixed Rare Candy not reviving a fainted Shedinja

This commit is contained in:
Maruno17
2022-07-06 20:02:30 +01:00
parent a85f672c73
commit 8f73319605
2 changed files with 3 additions and 0 deletions

View File

@@ -597,7 +597,9 @@ class PokemonEvolutionScene
# Check for consumed item and check if Pokémon should be duplicated
pbEvolutionMethodAfterEvolution
# Modify Pokémon to make it evolved
was_fainted = @pokemon.fainted?
@pokemon.species = @newspecies
@pokemon.hp = 0 if was_fainted
@pokemon.calc_stats
@pokemon.ready_to_evolve = false
# See and own evolved species