- Joined
- Jul 2, 2006
- Messages
- 35
-
Chain Lightning
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Chain Lightning
-
-
Actions
-
Set ArcLightningTarget = (Target point of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Chain Lightning for (Triggering unit)) Equal to 1
-
-
Then - Actions
-
Set ArcLightningMain = (Real((Intelligence of (Triggering unit) (Include bonuses))))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Chain Lightning for (Triggering unit)) Equal to 2
-
-
Then - Actions
-
Set ArcLightningMain = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 2.00)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Chain Lightning for (Triggering unit)) Equal to 3
-
-
Then - Actions
-
Set ArcLightningMain = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 3.00)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
Wait 0.20 seconds
-
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (ArcLightningMain x 0.20) damage of attack type Magic and damage type Lightning
-
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at ArcLightningTarget facing Default building facing degrees
-
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-
Unit Group - Pick every unit in (Units within 250.00 of (Position of (Target unit of ability being cast)) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) is Mechanical) Equal to False))) and do (Do nothing)
-
Unit - Add Chain Lightning(dummy) to (Last created unit)
-
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit)
-
Wait 0.20 seconds
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing (ArcLightningMain x 0.80) damage of attack type Magic and damage type Lightning
-
Custom script: call RemoveLocation(udg_ArcLightningTarget)
-
-