Hello
I currently have an ability set up for a "creep" where when it is attacked, it casts a healing wave spell that works like chain lightning by healing a unit near it for 80hp, and bounces to 2 other units, healing 5% less each time.
I've tried several methods for the "unit-order" action, nothing has worked. Does anyone know how I can fix this or set this up properly?
Here is my trigger:
I currently have an ability set up for a "creep" where when it is attacked, it casts a healing wave spell that works like chain lightning by healing a unit near it for 80hp, and bounces to 2 other units, healing 5% less each time.
I've tried several methods for the "unit-order" action, nothing has worked. Does anyone know how I can fix this or set this up properly?
Here is my trigger:
Trigger:
- Top side
- Events
- Unit - A unit owned by Player 8 (Pink) Is attacked
- Unit - A unit owned by Player 12 (Brown) Is attacked
- Unit - A unit owned by Player 10 (Light Blue) Is attacked
- Conditions
- Actions
- Set TempGroup = (Units in Snow <gen>)
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Unit-type of (Picked unit)) Equal to Kodo Overlord (|cff00a800Unlimited|r)) or ((Unit-type of (Picked unit)) Equal to Kodo Overlord)
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) is in AntiPatrolGroup3) Equal to True
- Then - Actions
- Set TempPoint = (Position of (Picked unit))
- Unit - Order (Picked unit) to (Name of Healing Wave (Creeps)(80)) (Random unit from (Units within 600.00 of (Position of (Picked unit)) matching (((Unit-type of (Target unit of issued order)) is A giant) Equal to True)))
- Point - Remove TempPoint
- Set TempPoint = (Center of Top Left <gen>)
- Unit - Order (Picked unit) to Move To TempPoint
- Point - Remove TempPoint
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Loop - Actions
- Unit Group - Destroy unit group TempGroup
- Events