- Joined
- Aug 24, 2010
- Messages
- 133
Please help with a simple spell using channel then creating a dummy to polymorph every unit in range.
For some reason only the first unit picked is polymorphed.
I tried making floating text appear above units its picked and it does appear over every unit.
I also tried making the dummy visible and taking off locust and there is only 1 dummy created.
For some reason only the first unit picked is polymorphed.
I tried making floating text appear above units its picked and it does appear over every unit.
I also tried making the dummy visible and taking off locust and there is only 1 dummy created.
-
Mass Polymorph
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Mass Polymorph (hero)
-
Actions
- Set temp_point = (Position of (Triggering unit))
-
Unit Group - Pick every unit in (Units within (600.00 + (300.00 x (Real((Level of Mass Polymorph (hero) for (Triggering unit)))))) of (Position of (Triggering unit))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an ally of (Triggering player)) Not equal to True
- ((Picked unit) is alive) Equal to True
-
Then - Actions
- Unit - Create 1 dummy for (Triggering player) at temp_point facing Default building facing degrees
- Unit - Add Polymorph Dummy to (Last created unit)
- Unit - Set level of Polymorph Dummy for (Last created unit) to (Level of Mass Polymorph (hero) for (Triggering unit))
- Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_temp_point)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events