LeBron James had 31 points, 12 assists and eight rebounds, Ray Allen hit a clinching three-pointer in the final minute, and Miami snapped a five-game road losing streak against Los Angeles with a 116-112 win.
Elsewhere, the depleted Los Angeles Lakers had to keep Robert Sacre on the court after he fouled out in the fourth quarter of their 119-108 victory over the Cleveland Cavaliers.
Kevin Durant had 26 points, nine rebounds and seven assists and Oklahoma City won for the 12th time in 13 games, beating Minnesota 106-97.
Tim Duncan scored a season-high 31 points before fouling out in the second overtime, and San Antonio beat Washington Wizards 125-118 for an NBA-high 16th time in a row.
Dwight Howard had 34 points and 14 rebounds, James Harden added 23 points and Houston beat Phoenix 122-108 for its fourth straight victory.
Nicolas Batum had 20 points and 10 rebounds, Wesley Matthews scored 18 points, and Portland overcame poor-shooting nights by its two All-Stars to beat New York 94-90.
DeMarcus Cousins had 25 points and 10 rebounds, Rudy Gay added 24 points and 10 rebounds, and Sacramento held off Toronto 109-101 to earn its fourth win in five games.
Anthony Davis had 27 points and 10 rebounds in New Orleans' 105-100 victory over Atlanta.
Dirk Nowitzki scored 26 points, Brandan Wright added 17 and Dallas used a second-half surge to beat Memphis 110-96.