LeBron James had 40 points and 16 assists, Dwyane Wade scored 39, and the Heat pushed their winning streak to 12 games by outlasting the Sacramento Kings, 141-129, in double overtime Tuesday night in Miami.

Ray Allen added 21, Chris Bosh finished with 15, and Chris Andersen had 10 for the Heat, who remained six games clear of second-place Indiana in the Eastern Conference standings.

Miami’s 12-game winning streak is the NBA’s longest and ties the second-longest in franchise history.

Advertisement - Continue Reading Below

Marcus Thornton scored 36 points for Sacramento, the most by any reserve in the NBA this season. DeMarcus Cousins finished with 24 points and 15 rebounds, Tyreke Evans added 26 points, John Salmons 15, and Isaiah Thomas 14 for the Kings.

James became the first NBA player to finish with at least 40 points and 16 assists since Kevin Johnson — now the mayor of Sacramento — had 42 and 17 for Phoenix against Denver on April 3, 1994.

In the first OT, the Kings had a chance for the late lead and potentially the win, but Thomas had a layup blocked by Bosh, and Allen grabbed the rebound for the Heat with 5.7 seconds left.

Pacers 108, Warriors 97 — David West had 28 points and seven rebounds, and Indiana overcome the ejection of Roy Hibbert following a fourth-quarter scuffle to beat Golden State in Indianapolis

West also was called for a technical foul, along with the Warriors’ David Lee, Stephen Curry, and Klay Thompson, for the altercation that began with 6:10 remaining in the game.

Bucks 95, Mavericks 90 — Monta Ellis scored 22 points, and visiting Milwaukee spoiled Dirk Nowitzki’s first game in nearly 10 years with at least 20 points and 20 rebounds.

Nowitzki had 21 points and 20 rebounds for the Mavericks, who had two chances after Ellis’s go-ahead basket. Vince Carter missed a 3-pointer and Darren Collison’s wild shot on a drive wasn’t close.

Magic 98, 76ers 84 — Arron Afflalo and Tobias Harris scored 16 points apiece, and Orlando snapped a 10-game road losing streak.

Andrew Nicholson contributed 13 and Nikola Vucevic had 12 points and 19 rebounds for the Magic (16-41), who hadn’t won on the road since Jan. 12 against the Clippers.

Suns 84, Timberwolves 83 — Marcin Gortat hit big shots at the end of regulation and overtime, helping host Phoenix end a three-game losing streak.

Gortat hit a runner with 13 seconds left in regulation to send the game to overtime and scored on a hard drive with 45 seconds left in the extra period.

Cavaliers 101, Bulls 98 — Dion Waiters scored 25 points to help make up for the absence of Kyrie Irving, and visiting Cleveland snapped an 11-game losing streak against Chicago.

While Irving rested a sore right knee in street clothes on the sideline, Waiters converted a fadeaway jumper and a layup before Tyler Zeller drove along the baseline for a layup that helped Cleveland open an 87-78 lead with 7:33 left in the game.

Nets 101, Hornets 97 — Deron Williams scored 33 points, Brook Lopez added 20 while playing against his twin brother, Robin, and Brooklyn snapped a two-game skid with a victory in New Orleans.

Clippers 106, Bobcats 84 — Blake Griffin scored 24 points, keying a decisive second-quarter burst and Los Angeles beat Charlotte to improve to 23-6 at home.