With any luck, or, rather, depending on what exactly you are doing here,
it might be possible to do it the other way around.
Example, in a map where players control only one Hero, and you have plenty of "in range" units,
put the range event on the Heroes, one trigger per Hero.