|
楼主 |
发表于 2009-2-18 18:34:35
|
显示全部楼层
[jass]不懂.
function Arsw_E takes nothing returns boolean
local unit u = GetFilterUnit()
if (not(IsUnitType(u,UNIT_TYPE_STRUCTURE) == false)) then
return false
endif
if (not(IsUnitType(u,UNIT_TYPE_GIANT) == false)) then
return false
endif
if GetUnitAbilityLevel(u,'BOvd') > 0 then
return false
endif
if GetUnitAbilityLevel(u,'Bcyc') > 0 then
return false
endif
if GetUnitAbilityLevel(u,'B00C') < 0 then
return false
endif
if GetUnitState(u,UNIT_STATE_LIFE) == 0 then
return false
endif
if (not(IsUnitAlly(u,GetOwningPlayer(I2U(GetStoredInteger(udg_GC,I2S(H2I(GetExpiredTimer())),"TriggerUnit")))) == false)) then
return false
endif
set u = null
return true
endfunction[/jass] |
|