- Joined
- May 20, 2009
- Messages
- 821
Just want to check if there's still any leaks in this and if it is MUI or not.
-
Star Call
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-

Actions
-


Custom script: local unit u = null
-


Custom script: local unit trigunit = null
-


Custom script: local unit dumunit = null
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Ability being cast) Equal to Star Call
-
-



Then - Actions
-




Custom script: set u = GetSpellTargetUnit()
-




Custom script: set trigunit = GetTriggerUnit()
-




Set SC_Target = (Target unit of ability being cast)
-




Set SC_Point = (Position of SC_Target)
-




Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at SC_Point facing SC_Point
-




Custom script: call RemoveLocation(udg_SC_Point)
-




Custom script: set dumunit = GetLastCreatedUnit()
-




Set SC_Target = (Target unit of ability being cast)
-




-------- This is the Important part. Choose your effect, then set the Wait to the Duration of the effect. --------
-




Special Effect - Create a special effect attached to the origin of SC_Target using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
-




Special Effect - Destroy (Last created special effect)
-




Wait 0.90 game-time seconds
-




Custom script: set udg_SC_Target = u
-




Custom script: set udg_SC_Caster = trigunit
-




Custom script: set udg_SC_DummyCaster = dumunit
-




Set SC_Point = (Position of SC_Target)
-




Set SC_Owner = (Owner of SC_Caster)
-




Set SC_Level = (Level of Star Call for SC_Caster)
-




-------- END VARIABLE --------
-




Unit - Set level of Shadow Strike for SC_DummyCaster to SC_Level
-




Unit - Order SC_DummyCaster to Night Elf Warden - Shadow Strike SC_Target
-




Unit - Add a 3.00 second Generic expiration timer to SC_DummyCaster
-




Custom script: call RemoveLocation(udg_SC_Point)
-




Custom script: set dumunit = null
-




Custom script: set trigunit = null
-




Custom script: set u = null
-
-



Else - Actions
-
-
-




