I need help to change this code so it could store enemy health predictions and command units to attack effectively

Thank you very much, Hinkle. It seems to be the case here. Unfortunately, the code combat parser doesnt support the global keyword yet (Python and global variables). Will do it in other language then.