fixed a potential bug where a variable was global
Merge branch 'legionnaireSubmission' of https://github.com/Kairus101/Heroes-of-Newerth-Bots into legionnaireSubmission