CommonFun.calcBuff_2420422 mapped buffs · 17 skills
function CommonFun.calcBuff_2420(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local n, m = 0, 0
if targetUser:GetNpcID() == 0 then
n = 1
end
if targetUser:GetNpcID() ~= 0 and targetUser.boss == false and targetUser.mini == false then
m = 1
end
local A = a * n + b * m
return A
endRelated skills