Jooster
New Member
- Reaction score
- 7
as the title say's. here's the code
the dummy unit has a custom tranquility, all duration in the ability is set to well over 60 seconds which is the generic life duration of the tree dummy. but when they are told to cast, they cast it. but only for 8 seconds or so and not the full 60 second duration.
Code:
boss 4 90 hp Copy
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to boss_array[4]
(Life of (Attacking unit)) Less than (((Max life of (Attacking unit)) / 100.00) x 90.00)
Actions
Trigger - Turn off (This trigger)
Set real_random = 0.00
Set point = (Position of (Attacking unit))
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set real_random = (real_random + 36.00)
Destructible - Create a dead Summer Tree Wall at (point offset by 180.00 towards real_random degrees) facing real_random with scale 1.15 and variation 0
Destructible - Resurrect (Last created destructible) with (Max life of (Last created destructible)) life and Show birth animation
Unit - Create 1 dummy tree for Neutral Hostile at (point offset by 230.00 towards real_random degrees) facing real_random degrees
Unit - Add a 60.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Move To (point offset by 700.00 towards real_random degrees)
Custom script: call RemoveLocation (udg_point)
Wait 4.00 seconds
Set unit_group = (Units of type dummy tree)
Unit Group - Pick every unit in unit_group and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Night Elf Keeper Of The Grove - Tranquility
Custom script: call DestroyGroup (udg_unit_group)
Wait 15.00 seconds
Destructible - Pick every destructible in boss 1 <gen> and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
Then - Actions
Destructible - Remove (Picked destructible)
Else - Actions
the dummy unit has a custom tranquility, all duration in the ability is set to well over 60 seconds which is the generic life duration of the tree dummy. but when they are told to cast, they cast it. but only for 8 seconds or so and not the full 60 second duration.