- Joined
- Aug 17, 2022
- Posts
- 18
Would like to check if the ability of the opponent is levitate. Have no idea where to find it and have got false results.
Battle::PokeBallEffects::ModifyCatchRate.add(:WINGBALL, proc { |ball, catchRate, battle, battler|
multiplier = (Settings::NEW_POKE_BALL_CATCH_RATES) ? 3.5 : 3
catchRate *= multiplier if battler.pbHasType?(:FLYING) || foe.ability == :LEVITATE
next catchRate
my code:
Battle::PokeBallEffects::ModifyCatchRate.add(:WINGBALL, proc { |ball, catchRate, battle, battler|
multiplier = (Settings::NEW_POKE_BALL_CATCH_RATES) ? 3.5 : 3
catchRate *= multiplier if battler.pbHasType?(:FLYING) || foe.ability == :LEVITATE
next catchRate
my code: