The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.3.12 (Linux)
File Line Function
/showthread.php 864 errorHandler->error



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
  


Messages In This Thread
Error during the script execution: chunk_1:(*line info): attempt to call a nil value - by Nanoc - 2018-06-08, 15:18:14

Forum Jump:


Browsing: 1 Guest(s)