That doesn’t check player number and will move every hero that exists on the map (that doesn’t have Locust). If you want to filter out by player I would add an additional filter condition:
-
(Player number of (Owner of (Matching Unit))) less than or equal to 6
You could also do a loop over each player’s units but that’s more work and if this isn’t being done hundreds of times per second the difference won’t matter.