local obj_tbl = actor:getAllBuffs()--获取所有Buff编号
if obj_tbl ~= nil then--列表存在
for k, v in pairs(obj_tbl) do
print("序号:"..tostring(k).." Buff编号:"..tostring(v))
end
end
if actor:checkBuffCd(9) == 1 then--检查指定Buff的CD间隔
print("9编号BUFF:查找不到或CD时间到时")
else
print("9编号BUFF:存在BUFF状态或CD时间未到")
end
local attrs_tbl = actor:getBuffEx(9)--获取指定BUFF的属性(att编号[AttId],属性点[Value])
if attrs_tbl ~= nil then--属性列表存在
for i, attr in ipairs(attrs_tbl) do--attr表结构(AttId=x,Value=y)
print("属性序号:"..tostring(i)..' att编号:'..tostring(attr.AttId)..' 属性点:'..tostring(attr.Value))
end
end