Fixed event evolutions not working

This commit is contained in:
Maruno17
2022-05-20 17:36:39 +01:00
parent cc7ecf0326
commit b344cb7fcc

View File

@@ -1009,7 +1009,7 @@ class Pokemon
# @param value [Integer] a value that may be used by the evolution method
# @return [Symbol, nil] the ID of the species to evolve into
def check_evolution_by_event(value = 0)
return check_evolution_internal { |pkmn, new_species, method, parameter, value|
return check_evolution_internal { |pkmn, new_species, method, parameter|
success = GameData::Evolution.get(method).call_event(pkmn, parameter, value)
next (success) ? new_species : nil
}