For those having problems with the script you can add this before "if (pokemon.breeding) {"
if(pokemon.id == 25.23){ } else {
and this after "pokemon.useVitamin(Vitamin.Carbos, optimalCarbos);"
}
Seems like there is a problem with an alternate version of Pikachu, it may happen with another Pokemon because I don't have all of them yet and cannot test it but you can write "console.log(pokemon.id);" before and after to see if the script crash again
For those having problems with the script you can add this before "if (pokemon.breeding) {"
if(pokemon.id == 25.23){
} else {
and this after "pokemon.useVitamin(Vitamin.Carbos, optimalCarbos);"
}
Seems like there is a problem with an alternate version of Pikachu, it may happen with another Pokemon because I don't have all of them yet and cannot test it but you can write "console.log(pokemon.id);" before and after to see if the script crash again