|
[codes=jass]function xixueConditions takes nothing returns boolean
return ( GetSpellAbilityId() == 'A02F' )
endfunction
function xixue1 takes nothing returns boolean
return ( UnitHasBuffBJ(GetTriggerUnit(), 'Bdcl') == true )
endfunction
function xixue2 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function xixue3 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function xixue4 takes nothing returns boolean
return GetBooleanAnd( xixue2(), xixue3() )
endfunction
function xixue5 takes nothing returns nothing
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function xixueActions takes nothing returns nothing
local timer abc=null
local location bcd=GetSpellTargetLoc()
call StartTimerBJ( abc, true, 1.50 )
if ( TimerGetRemaining(abc) == 0.00 ) then
if ( xixue1() ) then
call ForGroupBJ( GetUnitsInRangeOfLocMatching(400.00, GetSpellTargetLoc(), Condition(function xixue4)), function xixue5 )
call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Abilities\\Spells\\Orc\\StasisTrap\\StasisTotemTarget.mdl" )
call TriggerSleepAction( 1.00 )
call PauseUnitBJ( false, GetEnumUnit() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation(bcd)
else
set abc=null
endif
else
endif
endfunction[/codes]
本意是想在放吸血的时候被吸单位周围的敌方单位每隔1.5秒晕1秒,但不知道为什么没有效果 |
评分
-
查看全部评分
|