I have managed to implement Mega Evolutions in my game, but if I press the button to Mega Evolve I get this (htt*ps://pastebin.com/BXa8uaLp) error. The game doesn't actually crash after I get the error but the game just reverts back to the action select screen (Fight, Bag, Pokémon, Run screen)...