因为DK符文机制已经变了,所以对应的API也更新了,比如WBE的符文函数如下,你可以直接拿去用
function BeeRune() --返回符文可用数量,及最晚CD的符文时间
local id,cd;
local cd1=-1;
local cd2=-1;
local cd3=-1;
local runeType,i,n;
local start, duration, runeReady;
n=0
for i=1, 6 do
start, duration, runeReady = GetRuneCooldown(i);
cd = duration-(GetTime()-start);
if cd <= 0 then
cd = 0;
end
if cd <=0 then
n = n +1;
end
if cd1 == -1 then
cd1 = cd;
else
cd2 = cd;
end
if cd2>=cd1 then