mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-25 15:55:59 +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
|
# @param value [Integer] a value that may be used by the evolution method
|
||||||
# @return [Symbol, nil] the ID of the species to evolve into
|
# @return [Symbol, nil] the ID of the species to evolve into
|
||||||
def check_evolution_by_event(value = 0)
|
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)
|
success = GameData::Evolution.get(method).call_event(pkmn, parameter, value)
|
||||||
next (success) ? new_species : nil
|
next (success) ? new_species : nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user