I have attempted to make a spell in the data editor that works like this:
A spellcaster casts "Teleport" at target unit. That unit is immediately teleported back to the closest Nexus, CC or Hatchery owned by that player.
For example, player A casts Teleport at Player B's Hydralisk. It is teleported to the closest Hatchery owned by Player B.
I just can not get this spell to work properly in the data editor. Units are always teleported to the wrong structure - Player A's units are teleported to Player B's Hatchery, and so on... >.<
Is it possible to build this spell in the trigger editor?
I am decent at the data editor and can build most of the stuff I want, but I am quite weak at the trigger editor. Instructions suitable for a dummy would be appreciated! : D