I am trying to create a spell for my tag map.
What the spell basically does is summon a wolf and order it to attack a random
builder of a certain type from the map from the map .

to be specific: i create a wolf and i order him to attack a Random Unit from (Units owned by (Random player from ( All allies of Player 1 (Red))) of type Female Peasant))
what it actually does is to attack a random unit of that type of Player 1, regardless if i specify ally of player 1 or an enemy of player 12
There are 2 forces:
Force 1: Player 1 to Player 9
Force 2: Player 10 -> Player 12
allied, shared vision, allied victory...
i really can't comprehend why this is not working
my second problem is: when i summon the wolf and it gets its order to attack, if i click it i can stop it i can move him or give him another order.
How can i make him so that either he cannot be clickable or that when he is clicked he won't accept any other order and the icons for move, patrol, attack, stand ground, etc, don't show (just like the units in Casle Fight)
What the spell basically does is summon a wolf and order it to attack a random
builder of a certain type from the map from the map .

to be specific: i create a wolf and i order him to attack a Random Unit from (Units owned by (Random player from ( All allies of Player 1 (Red))) of type Female Peasant))
what it actually does is to attack a random unit of that type of Player 1, regardless if i specify ally of player 1 or an enemy of player 12
There are 2 forces:
Force 1: Player 1 to Player 9
Force 2: Player 10 -> Player 12
allied, shared vision, allied victory...
i really can't comprehend why this is not working
my second problem is: when i summon the wolf and it gets its order to attack, if i click it i can stop it i can move him or give him another order.
How can i make him so that either he cannot be clickable or that when he is clicked he won't accept any other order and the icons for move, patrol, attack, stand ground, etc, don't show (just like the units in Casle Fight)