getting this error in modular battle
---------------------------
Error
---------------------------
Script '[Interpreter]' line 246: RuntimeError occurred.
Script error within event 31 (coords 27,17), map 2 (Lappet Town):
Exception: RuntimeError
Message: 1v5:790:in `pbEnsureParticipants'Error: def pbGetOwnerIndexFromBattlerIndex gives invalid owner index (0 for battle type 1v1, trainers 0v1)
***Full script:
pbTrainerBattle(:CAMPER,"Liam")
Backtrace:
Interpreter:197:in `pbExecuteScript'
1v5:777:in `each'
1v5:777:in `pbEnsureParticipants'
1v5:775:in `loop'
1v5:830:in `pbEnsureParticipants'
1v5:966:in `pbStartBattle'
1v5:1536:in `pbTrainerBattleCore'
1v5:1535:in `pbSceneStandby'
1v5:1537:in `pbTrainerBattleCore'
1v5:1532:in `pbBattleAnimation'
---------------------------
OK
---------------------------
battling simple trainer