Hello There, Guest! Login Register


Error during the script execution: chunk_1:(*line info): attempt to call a nil value
#1
Hi.

Im seeing that calling attack() with a poke with no pp left on any movements causes a crash with

Error during the script execution: chunk_1:(): attempt to call a nil value


The line it shows is 
   
return attack() or SendUsablePokemon() or SendAnyPokemon()


could the bot use Struggle if there are no pp left? or maybe just return false...

Im not sure about the state of this amazing project so im not sure if i should make up for it in my script or do it myself on the bot...

Thanks.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)