vypur85
Hibernate
- Reaction score
- 803
It works. Just use 'Triggering unit', as told.
Added map to avoid confusion. Hope the bug doesn't occur again.
Code:
Trre Of Life Loops
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to TreeOfLife
Actions
Set unit = (Target unit of ability being cast)
Set Temp_point = (Position of (Target unit of ability being cast))
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Temp_point2 = (Temp_point offset by 600.00 towards ((Real((Integer A))) x 60.00) degrees)
Unit - Create 1 TreeOfLife for (Owner of (Triggering unit)) at Temp_point2 facing Default building facing degrees
Unit - Add Drain Life to (Last created unit)
Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain unit
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_Temp_point2)
Custom script: call RemoveLocation(udg_Temp_point)
Added map to avoid confusion. Hope the bug doesn't occur again.