A graph on vertices is called claw-heavy if every induced claw of has a pair of nonadjacent vertices such that their degree sum is at least . We say that a subgraph of is -heavy if for every pair of vertices at distance in . For a given graph , is called --heavy if every induced subgraph of isomorphic to is -heavy. For a family of graphs, is called --heavy if is --heavy for every . In this paper, we show that every -connected claw-heavy graph is hamiltonian if is --heavy, or --heavy, where is a deer and is a hourglass. Our result is a common generalization of previous theorems of Broersma et al. and Fan on hamiltonicity of -connected graphs.