SwedishChef
New Member
- Reaction score
- 32
Only need to work for a maximum of 2 units.
Trigger:
- Earthquake
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Earthquake Thrall
- (Triggering unit) Equal to DamageUnit
- Actions
- Set Temp_Point[(Custom value of (Triggering unit))] = (Position of (Triggering unit))
- Environment - Create a 4.00 second Normal ripple deformation at Temp_Point[(Custom value of (Triggering unit))] with starting radius 0.00, ending radius 500.00, and depth 40.00, using 0.80 second ripples spaced 200.00 apart
- Wait 0.80 seconds
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set MyUnitGroup = (Units within 300.00 of Temp_Point[(Custom value of (Triggering unit))] matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Owner of (Matching unit)) is an enemy of Neutral Hostile) Equal to True)
- Unit Group - Pick every unit in MyUnitGroup and do (Actions)
- Loop - Actions
- Unit - Cause DamageUnit to damage (Picked unit), dealing 80.00 damage of attack type Spells and damage type Normal
- Unit - Create 1 Dummy Unit for Neutral Hostile at Temp_Point[(Custom value of (Triggering unit))] facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Earthquake Dummy 2 to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Loop - Actions
- Wait 0.80 seconds
- Loop - Actions
- Custom script: call DestroyGroup(udg_MyUnitGroup)
- EGUI Leak - Remove Temp_Point[(Custom value of (Triggering unit))]
- Events