- 1
- Posts
- 85
- Days
- Seen Feb 12, 2025
Hi there,
I just encountered this error.
It happens during any Wild Battle (and presumably during any Trainer Battle) when my Pokémon faints.
As expected I get a yes/no choice for "Use next Pokémon?"
When I click yes the following error happens.
Exception: TypeError
Message: no implicit conversion from nil to integer
Backtrace:
Battle_ActionSwitching:250:in `pbMessagesOnReplace'
Battle_ActionSwitching:224:in `pbRecallAndReplace'
Battle_ActionSwitching:196:in `block (2 levels) in pbEORSwitch'
Battle_ActionSwitching:151:in `each'
Battle_ActionSwitching:151:in `block in pbEORSwitch'
Battle_ActionSwitching:149:in `loop'
Battle_ActionSwitching:149:in `pbEORSwitch'
Battle_EndOfRoundPhase:705:in `pbEndOfRoundPhase'
Battle_Clauses:41:in `pbEndOfRoundPhase'
Battle_StartAndEnd:342:in `block (2 levels) in pbBattleLoop'
Any idea what could be causing this?
Thank you!
I just encountered this error.
It happens during any Wild Battle (and presumably during any Trainer Battle) when my Pokémon faints.
As expected I get a yes/no choice for "Use next Pokémon?"
When I click yes the following error happens.
Spoiler: Error
Exception: TypeError
Message: no implicit conversion from nil to integer
Backtrace:
Battle_ActionSwitching:250:in `pbMessagesOnReplace'
Battle_ActionSwitching:224:in `pbRecallAndReplace'
Battle_ActionSwitching:196:in `block (2 levels) in pbEORSwitch'
Battle_ActionSwitching:151:in `each'
Battle_ActionSwitching:151:in `block in pbEORSwitch'
Battle_ActionSwitching:149:in `loop'
Battle_ActionSwitching:149:in `pbEORSwitch'
Battle_EndOfRoundPhase:705:in `pbEndOfRoundPhase'
Battle_Clauses:41:in `pbEndOfRoundPhase'
Battle_StartAndEnd:342:in `block (2 levels) in pbBattleLoop'
Any idea what could be causing this?
Thank you!