Formula

CommonFun.calcBuff_6986

function CommonFun.calcBuff_6986(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = d
  local RefineLv = srcUser:GetEquipedRefineLv(10)
  if 6 <= RefineLv and RefineLv < 8 then
    A = d + a
  elseif 8 <= RefineLv and RefineLv < 10 then
    A = d + a + b
  elseif 10 <= RefineLv then
    A = d + a + b + c
  end
  return A
end