condition: owner of attacking unit is in random allies of owner of attacked unit
action: pause attacking units
(or sth like that)^^ ----------------------------------- i hope this translation/solution works fine, because i m german and so i had to translate the triggers
You dont want to pase the unit. I suggest making some sort of ability, such as a spike armor varient with a stun buff that only targets allied units, and skip using triggers altogether.
As for that condition listed above, its under player comparison. -VGsatomi
I think it would work better this way; create a dummy unit with the hex ability. Give it 999999 mana and set it's size to 0.01. Now make this trigger:
Events: Unit/Generic Unit Event: A unit is attacked
Conditions: Player Comparison: Owner of Attacking Unit Equal to (Random player from (All allies of (Owner of Attacked Unit))))
Actions: Unit-Create Units facing Angle: Create 1 Dummy Unit for Neutral Passive at (Position of Attacking Unit)) facing (270.0) degrees Unit-Add Expiration Timer: Add a 5 expiration timer to Last Created Unit Unit-Issue Order Targeting a Unit: Order Last Created Unit to Orc Shadow Hunter - Hex (Attacking Unit)
I hope it's more clear. Through I fear some of the conditions may be wrong O_o. try it out anyway.
Your the first person that tells me that is glad to have me at these forums. Btw don't say that you love me could be... ehmm...you know what. I'm glad I helped through o.O
Yeah i noticed it was after i typed it but i didn't feel like changing . Well, i got it to work somewhat. Sometimes it hex's the unit and sometimes it doesn't. Then sometimes it hex's the unit besides the unit attacking and sometimes it hex's the unit attacking. lol, i'm going to just mess around with it untill i can get it to work right.