i want to summon a not-moving (ward) unit, that randomly attacks enemies in its range (400). so it does not wait till a unit is dead or out of range till it changes its target. well i made it that it changes targets, but the problem is, it also attacks my own units!!
dont know where the mistake is; or is there any other way to trigger that?
ty for help
-
Storm
-
Event
-
Unit - A unit creates a Summoned Unit
-
-
Conditions
-
((Unit-type of (Summoned unit)) Equal to Storm)
-
-
Actions
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Unit - Order (Summoned unit) to Attack (Random unit from (Units within 400.00 of (Position of (Summoned unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Summoned unit))) Equal to True)))
-
Wait 0.30 seconds
-
-
-
-
dont know where the mistake is; or is there any other way to trigger that?
ty for help