- 41
- Posts
- 4
- Years
- Seen Sep 19, 2023
I gave an opponent a quick claw. When quick claw activates it gives me the following error
Exception: NameError
Message: undefined local variable or method `b' for nil:NilClass
Backtrace:
BattleHandlers_Items:400
I tracked down line 400 in BattleHandlers_Items and found this.
BattleHandlers::PriorityBracketChangeItem.add(:QUICKCLAW,
proc { |item,battler,subPri,battle|
next 1 if subPri<1 && battle.pbRandom(100)<20 && (!battler.effects[PBEffects::PriorityAbility] && b.hasActiveAbility?(:QUICKDRAW))
Any idea how to fix this error? It doesn't actually crash the game but it does give that annoying pop-up.
Exception: NameError
Message: undefined local variable or method `b' for nil:NilClass
Backtrace:
BattleHandlers_Items:400
I tracked down line 400 in BattleHandlers_Items and found this.
BattleHandlers::PriorityBracketChangeItem.add(:QUICKCLAW,
proc { |item,battler,subPri,battle|
next 1 if subPri<1 && battle.pbRandom(100)<20 && (!battler.effects[PBEffects::PriorityAbility] && b.hasActiveAbility?(:QUICKDRAW))
Any idea how to fix this error? It doesn't actually crash the game but it does give that annoying pop-up.