Will Barton came off the bench to score 22 points and Danilo Gallinari added another 21 as the Denver Nuggets stopped an eight-game losing streak, beating the Toronto Raptors 106-105 Thursday night.
Denver avoided its first nine-game losing streak since the 2002-03 season, when it dropped 14 in a row.
Joffrey Lauvergne had 14 points and 10 rebounds for the Nuggets.
DeMar DeRozan scored a Raptors' season-high 34 points and Kyle Lowry had 16.