LeBron James scored 29 points, Dwyane Wade added 19, and the Heat extended their winning streak to 25 games by pulling away in the second half and beating the Detroit Pistons, 103-89, on Friday night.

Shane Battier and Mario Chalmers scored 11 apiece for Miami, which shook off yet another slow start to move within eight of tying the 1971-72 Los Angeles Lakers for the longest winning streak in NBA history. The Heat also won at home for the 16th straight time.

James added eight rebounds and eight assists for Miami, whose magic number for clinching the No. 1 seed in the Eastern Conference is now three.

Greg Monroe finished with 23 points and 15 rebounds for Detroit, which dropped its 10th straight game. Jose Calderon had 18 points and seven assists, most of that coming in the first half for the Pistons, who also got 18 points and eight rebounds from Kyle Singler.

The Heat dug their way out of a 17-point hole — and a 13-point deficit in the fourth quarter — to win in Boston on Monday, and a 27-point, third-quarter deficit to prevail in Cleveland on Wednesday.

No real dramatics were needed this time: Detroit led by 11 in the second quarter, but the second half was pretty much all Miami. The Heat outscored Detroit, 52-35, after halftime.

Wall had 16 assists, and Nene scored 15 points for the Wizards, who won their second straight while improving to 7-26 on the road.

Down 2 points, Kobe Bryant missed a short open jumper with 5 seconds to go and Metta World Peace fouled Wall, who made both free throws. After a timeout, Bryant’s 3-pointer drew the Lakers to 101-100 with 2 seconds left. But Bryant fouled Wall with 1 second to go, and he again made both.

Knicks 99, Raptors 94 — Carmelo Anthony scored 37 points, Kenyon Martin had 19 points and 11 rebounds, and New York clinched a playoff berth with a win in Toronto.

Martin shot 9 of 10 from the field and didn’t miss until 1:40 remained in the game, J.R. Smith scored 14 points and the Knicks earned their 41st win. That guaranteed they'll reach the playoffs for the third straight season, something they hadn’t done since a 14-year streak of postseason appearances from 1988 to 2001.

Thunder 97, Magic 89 — Kevin Durant scored 11 of his 25 points in the fourth quarter, Russell Westbrook had 19 points, and Oklahoma City held off host Orlando.

The Magic briefly took a 1-point lead in the final period, but the Thunder hit eight of their final 10 free throws to help seal the victory.

Spurs 104, Jazz 97 — Tony Parker had 22 points in his return from an eight-game absence, Tim Duncan added 19 points and 16 rebounds and host San Antonio escaped with an overtime victory against Utah.

Pacers 102, Bucks 78 — Tyler Hansbrough had 22 points and 12 rebounds to lead host Indiana to its third straight win.

Trail Blazers 104, Hawks 93 — Wesley Matthews scored 28 points to lead three Trail Blazers with at least 20 points and Portland beat Atlanta for its second road win in as many nights.