以下是所有BM风暴的技能效果代码
function Trig_Whirlwind_Conditions takes nothing returns boolean
return(GetSpellabilityId()=='AOww')
endfunction
function Trig_Whirlwind_Actions takes nothing returns nothing
set udg_Whirlwind_Unit=GetTriggerUnit()
call EnableTrigger(gg_trg_WhirlwindBuff)
call TriggerSleepAction(10.)
call DisableTrigger(gg_trg_WhirlwindBuff)
call GroupClear(udg_WhirlwindGroup)
set udg_Whirlwind_Unit=null
endfunction
function Trig_WhirlwindBuff_Func001C takes nothing returns boolean
return(IsUnitAliveBJ(udg_Whirlwind_Unit))
endfunction
function Trig_WhirlwindBuff_Actions takes nothing returns nothing
if(Trig_WhirlwindBuff_Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("weapon",udg_Whirlwind_Unit,"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
set udg_WhirlwindBuff=bj_lastCreatedEffect
call DestroyEffect(udg_WhirlwindBuff)
call CreateNUnitsAtLoc(1,'e00E',GetOwningPlayer(udg_Whirlwind_Unit),GetUnitLoc(udg_Whirlwind_Unit),GetRandomReal(0,360))
call GroupAddUnit(udg_WhirlwindGroup,bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),100.,GetRandomReal(0,360)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DisableTrigger(gg_trg_WhirlwindBuff)
call GroupClear(udg_WhirlwindGroup)
set udg_Whirlwind_Unit=null
endif
endfunction
function