- Joined
- Dec 20, 2005
- Messages
- 4
I tried to make a spell to bind all nearby ebemy units with shackles, but it stops binding after the first unit this is how far i did:
If someone help me fix this I will be able to make it channeling so the caster will be not able to move before stopping.
Code:
MassShackles
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mass Shackles
Actions
Unit Group - Pick every unit in (Units within 800.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Casting unit)) is an ally of (Owner of (Picked unit))) Equal to True
Then - Actions
Else - Actions
Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Make (Last created unit) Invulnerable
Unit - Add Shackles (Mass) to (Last created unit)
Unit - Order (Last created unit) to Human Dragonhawk Rider - Aerial Shackles (Picked unit)
If someone help me fix this I will be able to make it channeling so the caster will be not able to move before stopping.