^it may work but still after the first hit.
try this one.
No teamkill
Events
Unit - A unit Is issued an order targeting an object
Conditions
((Triggering unit) belongs to an ally of (Owner of (Target unit of issued order))) Equal to True
Actions
Unit - Order (Triggering unit) to Stop
Yeah....I got it working so that they cannot attack using regular attack, but they're able to use a spell on the other players hero, How can i fix that?