Hello, im new here, I have been reading tutorials on the site etc. and I've made a spell, and I wanted to know if I have made it leak for, or not. Thank you for help!
Don't know if it helps or not, but I use the GUI method of triggering, not JASS :shades:
Code:
DarkStrike
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Dark Strike
Actions
Set Temp_Group = (Units within 1000.00 of Temp_Point)
Set Temp_Point = (Position of (Triggering unit))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Create 1 DS Dummy Unit for (Owner of (Triggering unit)) at Temp_Point facing 0.00 degrees
Custom script: call RemoveLocation (udg_Temp_Point)
Unit - Add DS Ability to (Last created unit)
Unit - Set level of DS Ability for (Last created unit) to (Level of Dark Strike for (Triggering unit))
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call DestroyGroup (udg_Temp_Group)