0WN3D
New Member
- Reaction score
- 15
I tried to have a skill that creates 6 units around a unit that is 60 degrees apart.( Furion Sprout From DotA but not trees but units) Heres my trigger
The problem is that onli 1 unit is created instead of 6. + rep for any help... ( The spell targets Unit)
Trigger:
- TreeOfLife
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to TreeOfLife
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of TreeOfLife for (Casting unit)) Equal to 1
- Then - Actions
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Unit - Create 1 TreeOfLife for (Owner of (Casting unit)) at ((Position of (Target unit of ability being cast)) offset by 600.00 towards ((Real((Integer A))) x 60.00) degrees) facing Default building facing degrees
- Unit - Add Drain Life to (Last created unit)
- Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Target unit of ability being cast)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Loop - Actions
- For each (Integer A) from 1 to 6, do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
The problem is that onli 1 unit is created instead of 6. + rep for any help... ( The spell targets Unit)