This ability when used should create 5 dummy units at random locations around the caster then have them cast my custom ability based off shockwave in random directions based around the caster.
However it only does it once, but "debug" pops up 5 times.
However it only does it once, but "debug" pops up 5 times.
Code:
ShatterEarth
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shatter Earth
Actions
Set Temp_Point = (Position of (Casting unit))
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Game - Display to (All players) the text: debug
Unit - Create 1 DummyUnit (Custom Campaign) for (Owner of (Casting unit)) at (Random point in range of Temp_Point, with a maximum range of 500.00) facing (Random point in range of Temp_Point, with a maximum range of 500.00)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Random point in range of Temp_Point, with a maximum range of 1000.00)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Point - Remove Temp_Point