Are those variables local in some part of your code that's not visible in the snippet or are they global like that?
Mainly talking about the throwaway variable '_'
Since that's a throwaway variable
by programmer convention and not an automatically discarded variable, that's where I'd start.
There's a possibility Blizzard programmers have overlooked localizing some instance of _ in their own code so there's no telling what code paths are tainted.
Start by putting
at the top of your file.