For each (Integer A) from 1 to (Number of units in (Units within 700.00 of (Position of (Casting unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal , do (Actions)
Loop - Actions
Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at (Position of (Random unit from (Units within 700.00 of (Position of (Casting unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Casting uni facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Fan Of Knives to (Last created unit)
Unit - Set level of Fan Of Knives for (Last created unit) to (Level of Super Fan Of Knives for (Casting unit))
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Basically, this trigger was MEANT to create a 1 dummy caster for every unit near the casting unit, give it fan of knives and let it cast fan of knives.
The problem is, that only 1 Fan Of Knives is casted.
Unit Group - Pick every unit in (Units within 700.00 of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and do (Actions)
Loop - Actions
Set TempPoint = (Position of (Picked Unit)) Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees Unit - Add a 3.00 second Generic expiration timer to (Last created unit) Unit - Add Fan Of Knives to (Last created unit) Unit - Set level of Fan Of Knives for (Last created unit) to (Level of Super Fan Of Knives for (Triggering unit)) Unit - Order (Last created unit) to Night Elf Warden - Fan Of