还有其他的地方也有,
function Trig_Windwalk01_Conditions takes nothing returns boolean
return ((GetSpellAbilityId()=='A00V'))
endfunction
function Trig_Windwalk01_Actions takes nothing returns nothing
set udg_Wind_Jump_Unit=gg_unit_Obla_0043
call EnableTrigger(gg_trg_Windwalk02)
call EnableTrigger(gg_trg_Windwalk03)
call EnableTrigger(gg_trg_Windwalk04)
endfunction
//===========================================================================
function InitTrig_Windwalk01 takes nothing returns nothing
set gg_trg_Windwalk01=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Windwalk01,gg_unit_Obla_0043,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Windwalk01,Condition(function Trig_Windwalk01_Conditions))
call TriggerAddAction(gg_trg_Windwalk01,function Trig_Windwalk01_Actions)
endfunction
function Trig_Windwalk02_Func002001 takes nothing returns boolean
return (GetIssuedOrderId()==851971)
endfunction
function Trig_Windwalk02_Func002002 takes nothing returns boolean
return (GetIssuedOrderId()==851983)
endfunction
function Trig_Windwalk02_Conditions takes nothing returns boolean
return (GetBooleanOr(Trig_Windwalk02_Func002001(),Trig_Windwalk02_Func002002()))and((IsUnitEnemy(GetOrderTargetUnit(),GetOwningPlayer(udg_Wind_Jump_Unit))))
endfunction
function Trig_Windwalk02_Func001C takes nothing returns boolean
return ((UnitHasBuffBJ(udg_Wind_Jump_Unit,'BOwk')))
endfunction
function Trig_Windwalk02_Actions takes nothing returns nothing
if (Trig_Windwalk02_Func001C()) then
set udg_Wind_Jump_Unit_Point=GetUnitLoc(udg_Wind_Jump_Unit)
set udg_Wind_Jump_Target=GetOrderTargetUnit()
set udg_Wind_Jump_Target_Point=GetUnitLoc(udg_Wind_Jump_Target)
set udg_Wind_Jump_Distance=DistanceBetweenPoints(udg_Wind_Jump_Unit_Point,udg_Wind_Jump_Target_Point)
else
set udg_Wind_Jump_Target=null
set udg_Wind_Jump_Unit=null
call DisableTrigger(gg_trg_Windwalk02)
call DisableTrigger(gg_trg_Windwalk03)
call DisableTrigger(gg_trg_Windwalk04)
endif
endfunction
//===========================================================================
function InitTrig_Windwalk02 takes nothing returns nothing
set gg_trg_Windwalk02=CreateTrigger()
call DisableTrigger(gg_trg_Windwalk02)
call TriggerRegisterUnitEvent(gg_trg_Windwalk02,gg_unit_Obla_0043,EVENT_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(gg_trg_Windwalk02,Condition(function Trig_Windwalk02_Conditions))
call TriggerAddAction(gg_trg_Windwalk02,function Trig_Windwalk02_Actions)
endfunction |