mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed event evolutions not working
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user