- Joined
- Jul 18, 2009
- Messages
- 200
Now i dont know what to do. The code works, it's no problem. Thats the strange. I thought it would leak and not work. But i want the hero to spin when he is attacked AND have the ability! That's what i dont find.
-
Spin of Blades
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Spin_Unit has buff Power of The Blade ) Not equal to False
-
-
Actions
-
Set Spin_Random_Real = (Random percentage)
-
Set Spin_Unit_Loc = (Position of Spin_Unit)
-
Set Spin_Unit = (Attacked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Spin_Random_Real Less than or equal to 25.00
-
-
Then - Actions
-
Animation - Play Spin_Unit's spin animation, using only Rare animations
-
Set Spin_Unit_Group = (Units within 250.00 of Spin_Unit_Loc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of Sp
-
Unit Group - Pick every unit in Spin_Unit_Group and do (Actions)
-
Loop - Actions
-
Unit - Cause Spin_Unit to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
-
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_Spin_Unit_Loc)
-
Custom script: call DestroyGroup(udg_Spin_Unit_Group)
-
Wait 0.25 seconds
-
-
-
-
Else - Actions
-
-
-