- Joined
- Aug 27, 2013
- Messages
- 104
Spell is based on thunder clap, and i want it to damage only enemy units but i can't see why it is not working, armor part is working
-
deep freeze
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Deep Freeze
-
-
Actions
-
Set unitgroup = (Units within 400.00 of deeppoint)
-
Set deeppoint = (Position of (Casting unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Deep Freeze for (Casting unit)) Equal to 1
-
-
Then - Actions
-
Unit Group - Pick every unit in unitgroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(((Picked unit) belongs to an ally of (Owner of (Casting unit))) Equal to False) and (((Picked unit) is alive) Equal to True)
-
-
Then - Actions
-
Unit - Cause (Casting unit) to damage (Picked unit), dealing (0.10 x (Max life of (Casting unit))) damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
-
-
-
Unit - Create 1 dummy for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees
-
Unit - Add Frost Armor1 (dummy) to (Last created unit)
-
Unit - Order (Last created unit) to Undead Lich - Frost Armor (Casting unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Custom script: call DestroyGroup(udg_unitgroup)
-
Custom script: call RemoveLocation(udg_deeppoint)
-
-
Else - Actions
-
-
-