|
楼主 |
发表于 2011-4-19 17:51:10
|
显示全部楼层
除了那个函数以外就没有其他的地方有TU了啊?
还是把我的J发上来算了...
[jass]
function wudizhan2_Conditions takes nothing returns boolean
if ( not ( ianjishu > 0 ) ) then
return false
endif
return true
endfunction
function wudizhan2_Func002Func006002003001 takes nothing returns boolean
return ( IsUnitAliveBJ(TU) == true )
endfunction
function wudizhan2_Func002Func006002003002001 takes nothing returns boolean
return ( IsUnitAlly(GetFilterUnit(), GetOwningPlayer(TU)) == false )
endfunction
function wudizhan2_Func002Func006002003002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function wudizhan2_Func002Func006002003002 takes nothing returns boolean
return GetBooleanAnd( wudizhan2_Func002Func006002003002001(), wudizhan2_Func002Func006002003002002() )
endfunction
function wudizhan2_Func002Func006002003 takes nothing returns boolean
return GetBooleanAnd( wudizhan2_Func002Func006002003001(), wudizhan2_Func002Func006002003002() )
endfunction
function wudizhan2_Func002Func007A takes nothing returns nothing
set SU = GetEnumUnit()
endfunction
function wudizhan2_Func002Func008Func002C takes nothing returns boolean
if ( ( lianjishu <= 0 ) ) then
return true
endif
if ( ( IsUnitDeadBJ(SU) == true ) ) then
return true
endif
return false
endfunction
function wudizhan2_Func002Func008C takes nothing returns boolean
if ( not wudizhan2_Func002Func008Func002C() ) then
return false
endif
return true
endfunction
function wudizhan2_Func002C takes nothing returns boolean
if ( not ( lianjishu <= 0 ) ) then
return false
endif
return true
endfunction
function wudizhan2 takes unit TU, unit SU, integer lianjishu, effect TX returns nothing
local unit TU
local unit SU
local integer lianjishu
local group xuqudanwei
local effect TX
set lianjishu = ( lianjishu - 1 )
if ( wudizhan2_Func002C() ) then
call SelectUnitForPlayerSingle( TU, GetOwningPlayer(TU) )
call SetUnitInvulnerable( TU, false )
call SetUnitVertexColorBJ( TU, 100, 100, 100, 0 )
call DestroyEffect( TX )
else
set xuanqudanwei = GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(TU), Condition(function wudizhan2_Func002Func006002003))
call ForGroupBJ( GetRandomSubGroup(1, xuanqudanwei), function wudizhan2_Func002Func007A )
if ( wudizhan2_Func002Func008C() ) then
call SelectUnitForPlayerSingle( TU, GetOwningPlayer(TU) )
call SetUnitInvulnerable( TU, false )
call SetUnitVertexColorBJ( TU, 100, 100, 100, 0 )
call DestroyEffect( TX )
else
call SetUnitPositionLocFacingBJ( TU, GetUnitLoc(SU), GetRandomDirectionDeg() )
call DestroyEffect( AddSpecialEffectTarget("Abilities\\\\Spells\\\\NightElf\\\\Blink\\\\BlinkCaster.mdl", TU "overhead") )
call UnitDamageTargetBJ( TU, SU, GetRandomReal(150.00, 250.00), ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
call IssueTargetOrder( TU, "attack", SU )
call PolledWait( 0.3)
call GroupClear( xuqudanwei )
call wudizhan2(TU,SU,lianjishu,TX)
endif
endif
call GroupClear( xuqudanwei )
endfunction
[/jass] |
|