mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Fixed bug with trainer data, tidied evolution-checking code
This commit is contained in:
@@ -177,7 +177,7 @@ def pbChangeLevel(pkmn,newlevel,scene)
|
||||
pbLearnMove(pkmn,i[1],true) { scene.pbUpdate }
|
||||
end
|
||||
# Check for evolution
|
||||
newspecies = EvolutionCheck.check(pkmn)
|
||||
newspecies = EvolutionCheck.check_level_up_methods(pkmn)
|
||||
if newspecies
|
||||
pbFadeOutInWithMusic {
|
||||
evo = PokemonEvolutionScene.new
|
||||
@@ -490,7 +490,7 @@ def pbUseItem(bag,item,bagscene=nil)
|
||||
if itm.is_evolution_stone?
|
||||
annot = []
|
||||
for pkmn in $Trainer.party
|
||||
elig = EvolutionCheck.check(pkmn, item)
|
||||
elig = EvolutionCheck.check_item_methods(pkmn, item)
|
||||
annot.push((elig) ? _INTL("ABLE") : _INTL("NOT ABLE"))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user