Relic Castle

so i've been away from my project but ive not touched how balls work in ages. suddenly my trainer battles are broken (on send out all the pokeballs appear onscreen and get the error below)

Code:
---------------------------
Pokemon: Sacred Johto
---------------------------
Exception: NoMethodError

Message: undefined method `*' for nil:NilClass

EliteBattle_Scene:1112:in `pbTrainerSendOut'

EliteBattle_Scene:1103:in `each'

EliteBattle_Scene:1103:in `pbTrainerSendOut'

EliteBattle_Battle:265:in `pbSendOutInitial'

EliteBattle_Battle:155:in `pbStartBattleCore'

PokeBattle_Battle:4165:in `pbStartBattle'


This exception was logged in

C:\Users\User\Saved Games/Pokemon_ Sacred Johto/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK   
---------------------------

the * refers to
"balltype[m] = 0 if balltype[m]*41 >= @sprites["pokeball#{i}"].bitmap.width"
in the EliteBattle_Scene script page.

im unsure what ive done, i've compared to a fresh ebs script (of _Scene) and even then it breaks. could anything be effecting this?

(i am having an issue with the user one-shotting everything but thats most likely not related)
Top