function Trig_skill_1_conditions takes nothing return boolean
if ( not ( GetSpellAbilityId == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_skill_1_actions takes nothing return nothing
local unit hero = GetSpellAbilityUnit()
local location tar_loc = GetSpellTargetLoc()
call TriggerSleepAction(0.5)
call CS_MoveUnitLoc(hero, tar_loc)
endfunction
//==== Initial ====
function InitTrig_skill_1 takes nothing return nothing
set gg_trg_skill_1 = CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_skill_1, Player(0), EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill_1, Condition(function Trig_skill_1_conditions))
call TriggerAddAction(gg_trg_skill_1, function Trig_skill_1_actions)
endfunction