- Joined
- Apr 24, 2012
- Messages
- 9,797
I don't get what's wrong but I'm sure these actions are the problem.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Damage source)) Equal to Corsair Chieftain
- (Level of Tidal Blade for (Damage source)) Greater than 0
-
Then - Actions
- Set TempPoint = (Position of (Damage source))
- Set TempInteger = (Integer((Facing of (Damage source))))
- Set TempReal = ((100.00 + (25.00 x (Real((Level of Tidal Blade for (Damage source)))))) + 5.00)
- Set TempPoint = (TempPoint offset by TempReal towards (Real(TempInteger)) degrees)
- Set TempGroup = (Units within TempReal of TempPoint matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Damage source))) Equal to True)))
- Custom script: call RemoveLocation(udg_TempPoint)
- Set TempInteger = (Level of Tidal Blade for (Damage source))
- Set TempReal = (((Real((Strength of (Damage source) (Include bonuses)))) / 2.00) x (Real(TempInteger)))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Set TempPoint = (Position of (Picked unit))
- Unit - Cause (Damage source) to damage (Picked unit), dealing TempReal damage of attack type Chaos and damage type Universal
- Special Effect - Create a special effect at TempPoint using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call DestroyGroup(udg_TempGroup)
- Else - Actions
-
If - Conditions