|
function Trig_AK_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_AK_Func001001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_AK_Func001A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 500.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_AK_Actions takes nothing returns nothing
local location a1
local location a2
local real b3
local group b4
local integer long1
set b3 = 80.00
loop
exitwhen long1 < 20
set a1 = GetUnitLoc(GetTriggerUnit())
set a2 = PolarProjectionBJ(a1, b3 , GetUnitFacing(GetTriggerUnit()))
set b4 = GetUnitsInRectMatching(66.00, a2, Condition(function Trig_AK_Func001001003))
call ForGroup( b4 , function Trig_AK_Func001A )
set long1=long1+1
set b3 = b3 + 80.00
endloop
call PlaySoundOnUnitBJ( gg_snd_ak47_1, 100, GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_AK takes nothing returns nothing
set gg_trg_AK = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AK, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_AK, Condition( function Trig_AK_Conditions ) )
call TriggerAddAction( gg_trg_AK, function Trig_AK_Actions )
endfunction
这个是某技能的一个J,我做完了一存就和我说
我在线等,各位大侠!。。。 |
-
|