Formula
CommonFun.calcBuff_6330
function CommonFun.calcBuff_6330(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
local RefineLv1 = srcUser:GetEquipedRefineLv(5_ACCESSORY)
local Ring2 = srcUser:GetEquipedID(6_ACCESSORY)
local RefineLv2 = srcUser:GetEquipedRefineLv(6_ACCESSORY)
local order1 = srcUser:getEquipLv(5)
local order2 = srcUser:getEquipLv(6)
local aa = 0
local bb = 0
local cc = 0
local dd = 0
if (Ring1 == 44077_BLOODSTAIN_IRON_BALL_BLOODSTAIN_IRON_BALL or Ring1 == 144077_BLOODSTAIN_IRON_BALL_1_BLOODSTAIN_IRON_BALL_1) and 8 <= RefineLv1 then
aa = 0.1
end
if (Ring2 == 44077_BLOODSTAIN_IRON_BALL_BLOODSTAIN_IRON_BALL or Ring2 == 144077_BLOODSTAIN_IRON_BALL_1_BLOODSTAIN_IRON_BALL_1) and 8 <= RefineLv2 then
bb = 0.1
end
if (Ring1 == 44077_BLOODSTAIN_IRON_BALL_BLOODSTAIN_IRON_BALL or Ring1 == 144077_BLOODSTAIN_IRON_BALL_1_BLOODSTAIN_IRON_BALL_1) and 12 <= RefineLv1 then
cc = 0.1
end
if (Ring2 == 44077_BLOODSTAIN_IRON_BALL_BLOODSTAIN_IRON_BALL or Ring2 == 144077_BLOODSTAIN_IRON_BALL_1_BLOODSTAIN_IRON_BALL_1) and 12 <= RefineLv2 then
dd = 0.1
end
local A = -0.3 - math.min(0.1, cc + dd) - math.min(0.1, aa + bb)
return A
end