|
发表于 2010-5-19 16:39:45
|
显示全部楼层
[codes=jass]function Trig_BoneofArmor_Actions takes nothing returns nothing
local timer ti = null
local unit ut = GetTriggerUnit()
local unit us = GetSpellTargetUnit()
local integer i = 0
if (GetUnitAbilityLevel(us, 'B00D') > 0) == false then
set ti = CreateTimer()
call StoreInteger(udg_GC,I2S(H2I(us)),"ti",H2I(ti))
call StoreInteger(udg_GC,I2S(H2I(ti)),"us",H2I(us))
call StoreInteger(udg_GC,I2S(H2I(ti)),"lasttime", 600)
call TimerStart(ti, 0.05, true, function BoneofArmor_Lasttime)
else
set ti = I2Tm(GetStoredInteger(udg_GC, I2S(H2I(us)), "ti"))
call StoreInteger(udg_GC,I2S(H2I(ti)),"lasttime", 600)
endif
set ti = null
set ut = null
set us = null
endfunction[/codes]
----------- 帖子于 16:39 更新 --------- 之前内容发布于 16:39 ------------
其实也只是试试 |
|