- 11
- Posts
- 13
- Years
- Seen Mar 13, 2025
Hi people! I want to make a pokeball that modifies the catch rate, based on the color of the pokemon.
I tried making something like this:
BallHandlers::ModifyCatchRate.add(:SANLBALL,proc{|ball,catchRate,battle,battler|
catchRate*=3 if battler.pbHasColor?(:Blue) || battler.pbHasColor?(:Red)
next catchRate
But it doesn't work, any ideas?
Thanks in advance!
I tried making something like this:
BallHandlers::ModifyCatchRate.add(:SANLBALL,proc{|ball,catchRate,battle,battler|
catchRate*=3 if battler.pbHasColor?(:Blue) || battler.pbHasColor?(:Red)
next catchRate
But it doesn't work, any ideas?
Thanks in advance!