function LocustSux takes nothing returns nothing
local unit u = GetEnumUnit()
call UnitRemoveAbility(u,'Aloc')
set u = null
endfunction
function LocustSuxNot takes nothing returns nothing
local unit u = GetEnumUnit()
call UnitAddAbility(u,'Aloc')
set u = null
endfunction
function Slowing takes nothing returns nothing
local unit u = GetEnumUnit()
local group g = CreateGroup()
local real x = GetUnitX(u)
local real y = GetUnitY(u)
call GroupEnumUnitsInRange(g, x,y,350,null)//Filter(function MissleFilter
call ForGroup(g, function Slow )
call DestroyGroup(g)
set u = null
set g = null
endfunction
function Trig_Slowing_Actions takes nothing returns nothing
call ForGroup(udg_misslegroup,function LocustSux)
call ForGroup(udg_Slowgroup, function Slowing )
call ForGroup(udg_misslegroup,function LocustSuxNot)
endfunction
//===========================================================================
function InitTrig_Slowing takes nothing returns nothing
set gg_trg_Slowing = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Slowing, 0.03 )
call TriggerAddAction( gg_trg_Slowing, function Trig_Slowing_Actions )
endfunction