Mullit
New Member
- Reaction score
- 51
Code:
Tsunami
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Tsunami
Actions
Set TempPoint = (Position of (Casting unit))
For each (Integer A) from 1 to 16, do (Actions)
Loop - Actions
Unit - Create 1 dummy for (Owner of (Casting unit)) at TempPoint facing ((Facing of (Casting unit)) + (22.50 x (Real((Integer A))))) degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Crushing Wave to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm (TempPoint offset by 50.00 towards (Facing of (Last created unit)) degrees)
Custom script: call RemoveLocation (udg_TempPoint)
What that should do is cast crushing wave 16 times, 22.5 degrees apart around the caster so that they are evenly spaced. Instead what happens is there are 16 cast in a fan shape infront of the caster. Could someone please tell me what is wrong with it and does 'facing of unit' create a memory leak?