|
if(not(GetSpellAbilityId()=='A09N'))then
return false
endif
return true
endfunction
function Trig_shouweiqiyue_shanghai_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shouweiqiyue_shanghai_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetTriggerPlayer())==true)
endfunction
function Trig_shouweiqiyue_shanghai_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shouweiqiyue_shanghai_Func001001003001(),Trig_shouweiqiyue_shanghai_Func001001003002())
endfunction
function Trig_shouweiqiyue_shanghai_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroAgi(GetTriggerUnit(),true))*30.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_UNIVERSAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Orc\\ReinforcedTrollBurrow\\ReinforcedTrollBurrowTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_shouweiqiyue_shanghai_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(5000.00,GetSpellTargetLoc(),Condition(function Trig_shouweiqiyue_shanghai_Func001001003)),function Trig_shouweiqiyue_shanghai_Func001A)
endfunction
function InitTrig_shouweiqiyue_shanghai takes nothing returns nothing
set gg_trg_shouweiqiyue_shanghai=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_shouweiqiyue_shanghai,gg_unit_O000_0047,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_shouweiqiyue_shanghai,Condition(function Trig_shouweiqiyue_shanghai_Conditions))
call TriggerAddAction(gg_trg_shouweiqiyue_shanghai,function Trig_shouweiqiyue_shanghai_Actions)
endfunction |
|