fixes ability ball

This commit is contained in:
infinitefusion
2024-07-05 18:11:49 -04:00
parent 0d75109a20
commit 8c80c9db35

View File

@@ -30,7 +30,9 @@ next catchRate
}) })
BallHandlers::OnCatch.add(:ABILITYBALL,proc{|ball,battle,pokemon| BallHandlers::OnCatch.add(:ABILITYBALL,proc{|ball,battle,pokemon|
species = getSpecies(dexNum(pokemon)) species = getSpecies(dexNum(pokemon))
pokemon.ability_index= getAbilityIndexFromID(species.hidden_abilities[-1],pokemon) ability = species.hidden_abilities[-1]
pokemon.ability = ability
pokemon.ability_index= getAbilityIndexFromID(ability,pokemon)
}) })
#VIRUS BALL 27 - give pokerus #VIRUS BALL 27 - give pokerus