|
楼主 |
发表于 2024-3-12 14:36:59
|
显示全部楼层
重新搞了个 20231024 版本的新底板,依然不飘血
function attackdamage(actor, Target, Hiter, MagicId, Damage)
local name = getbaseinfo(Target, ConstCfg.gbase.name)
release_print("飘血对象",name)
for site, val in pairs(cfg_jinengshanghai) do
local equipobj = linkbodyitem(actor, site)
if equipobj ~= "0" then
local idx = getiteminfo(actor, equipobj, ConstCfg.iteminfo.idx)
if val[idx] and val[idx].jineng then
for i, tab in ipairs(val[idx].jineng) do
if tab[1] == MagicId then
Damage = Damage + Damage * (tab[2] / 100)
end
end
end
end
end
Damage = 0
humanhp(Target, "-", 1, 2)
makeposion(Target,0,30,20)
return Damage
end
|
|