Battle: Fix crash in oldgen module
Battle: Fix crash in oldgen module

Ecuacion/Espaol-Bot,Freigeist/Pokemon-Showdown-Node-Bot,abulechu/Pokemon-Showdown-Node-Bot,psnsVGC/Le-Spatula,megaslowbro1/heatah-fajita-bot-test-2,sama2/Pokemon-Showdown-Node-Bot,megaslowbro1/test-bot,Robophill/Pokemon-Showdown-Node-Bot,awolffromspace/PC-Battle-Server-Bot,TheFenderStory/Mambot,Ecuacion/Pokemon-Showdown-Node-Bot,TheFenderStory/Pokemon-Showdown-Node-Bot,ateck5/le_spatula,Flareninja/Pokemon-Showdown-Node-Bot