This is probably the billionth thread on detecting who cast Dark Swarm.
To my knowledge, comstat doesn't work. It's like a map revealer; it doesn't exist in any location whatsoever.
Alternatives to a Dark Swarm system not mentioned above include:
1) Hallucination (only works if each player has different units)
2) Flag Beacons (10 minute limit, doesn't work under certain things)
3) FRAGs (limited to a small area, need to repeat the scourges to get it to work for a larger area)
4) Directional detection (to my knowledge never implemented before, pure theory, I did not think of this)
Directional detection involves using air units at the edges of the map. When the user orders them to move, you determine which direction they moved relative to the hero. It won't get a specific tile, but it does get a direction. After that, you can grid something in that direction for the range you want.
For example, say you wanted to do 8 directional detection. Then you have 4 Scourges at the edges of the map. One directly above the hero, one directly below the hero, one directly left of the hero, one directly right of the hero. When the player moves all 4 Scourges, you can then detect a direction. Note that each time the hero moves, each of the 4 Scourges must be moved relative to the hero's new position.
Directions:
Top: Top went down, Bottom went up, Left went up right, Right went up left.
Top Right: Top went down right. Bottom went up right. Left went up right. Right went up left.
Right: Top went down right. Bottom went up right. Left went right. Right went left.
etc.
Doing 16 directional detection requires 8 Scourges with the 4 additional Scourges at the corners and pixel detection to determine if it went left or right of the diagonal, which is more difficult but offers better aiming. Coordinate grid would be recommended in order to determine where to place the Scourges.
Other than that, there are also wierd targeting systems that aren't as practical. Like a dropship with 8 units, each one representing a direction. Or ensnare. So on and so forth.
Actually, it seems like a Teleport back point would be the easiest and most practical thing to trigger. It doesn't offer as many offensive possibilities though.