|
发表于 2008-12-5 20:19:28
|
显示全部楼层
[codes=jass]function H2I takes handle h returns integer
return h
return 0
endfunction
function I2U takes integer i returns unit
return i
return null
endfunction
function I2TX takes integer i returns effect
return i
return null
endfunction
function xuu takes nothing returns nothing
local timer t = GetExpiredTimer()
local unit u = I2U(GetStoredInteger(GameCache(),I2S(H2I(t)),"TriggerUnit"))
local effect tempEffect = I2TX(GetStoredInteger(GameCache(),I2S(H2I(t)),"Effect"))
call DestroyEffect(tempEffect)
call PauseTimer(t)
call DestroyTimer(t)
call FlushStoredMission(GameCache(),I2S(H2I(t)))
set t = null
set u = null
set tempEffect = null
endfunction
function Trig_A014_Actions takes nothing returns nothing
local timer t = CreateTimer()
local unit u = GetTriggerUnit()
local effect tempEffect = AddSpecialEffectTarget("Abilities\\\\Spells\\\\Undead\\\\UnholyFrenzy\\\\UnholyFrenzyTarget.mdl",u,"overhead")
local real r = 5+5*GetUnitAbilityLevel(u,'A014')
call StoreInteger(GameCache(),I2S(H2I(t)),"TriggerUnit",H2I(u))
call StoreInteger(GameCache(),I2S(H2I(t)),"Effect",H2I(tempEffect))
call TimerStart(t,r,false,function xuu)
set t = null
set u = null
set tempEffect = null
endfunction[/codes] |
|