|
楼主 |
发表于 2008-7-21 17:48:20
|
显示全部楼层
CycloneCasting:
function Trig_CycloneCasting_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_CycloneCasting_Actions takes nothing returns nothing
set udg_Cyclone = GetTriggerUnit()
call UnitAddAbilityBJ( 'A018', udg_Cyclone )
call SetUnitMoveSpeed( udg_Cyclone, ( GetUnitMoveSpeed(udg_Cyclone) + 400.00 ) )
call AddSpecialEffectTargetUnitBJ( "overhead", udg_Cyclone, "Abilities\\\\Spells\\\\Undead\\\\UnholyFrenzy\\\\UnholyFrenzyTarget.mdl" )
set udg_CycloneEffect = GetLastCreatedEffectBJ()
endfunction
//===========================================================================
function InitTrig_CycloneCasting takes nothing returns nothing
set gg_trg_CycloneCasting = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_CycloneCasting, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_CycloneCasting, Condition( function Trig_CycloneCasting_Conditions ) )
call TriggerAddAction( gg_trg_CycloneCasting, function Trig_CycloneCasting_Actions )
endfunction |
|