Hi, I just wanted to know if this spell I made leak, cause not sure and I am planing on use spells like this. Thx
Code:
Spell
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spell
Actions
Set Caster = (Triggering unit)
Set Caster_Pos = (Position of Caster)
Set Offset = 0.00
Set Degrees = 0.00
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of Caster) at Caster_Pos facing Caster_Pos
Set Dummy[(Integer A)] = (Last created unit)
Unit - Move Dummy[(Integer A)] instantly to (Caster_Pos offset by 20.00 towards Degrees degrees), facing Caster_Pos
Set Degrees = (Degrees + 18.00)
Set Around[(Integer A)] = (Angle from Caster_Pos to (Position of Dummy[(Integer A)]))
Unit - Add a 6.00 second Generic expiration timer to Dummy[(Integer A)]
Trigger - Turn on Move Up <gen>
Wait 3.00 seconds
Trigger - Turn off Move Up <gen>
Unit Group - Pick every unit in (Units within 600.00 of Caster_Pos matching (((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is dead) Equal to False))) and ((((Matching unit) belongs to an ally of (Owner of Caster)) E and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Unit_Coming
Unit - Cause Caster to damage (Picked unit), dealing ((Distance between Caster_Pos and (Position of (Picked unit))) x (0.10 x (Real((Level of Spell for Caster))))) damage of attack type Spells and damage type Magic
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
Trigger - Turn on Move Down <gen>
Wait 3.00 seconds
Trigger - Turn off Move Down <gen>
Code:
Move Up
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Unit - Move Dummy[(Integer A)] instantly to (Caster_Pos offset by Offset towards Around[(Integer A)] degrees)
Set Offset = (Offset + 0.10)
Set Around[(Integer A)] = (Around[(Integer A)] + 1.00)
Code:
Move Down
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Unit - Move Dummy[(Integer A)] instantly to (Caster_Pos offset by Offset towards Around[(Integer A)] degrees)
Set Offset = (Offset - 0.10)
Set Around[(Integer A)] = (Around[(Integer A)] - 1.00)
Unit Group - Pick every unit in Unit_Coming and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Caster_Pos offset by Offset towards (Angle from Caster_Pos to (Position of (Picked unit))) degrees)