Kyrie Irving scored 29 points and Royce O’Neale hit the game-winning shot as the Brooklyn Nets overcame a second-half injury to Kevin Durant to beat the hosts Miami Heat 102-101.
O’Neale scored the go-ahead basket on a putback with 3.2 seconds left after rebounding an Irving 3-point miss.
Miami’s Jimmy Butler missed a contested drive in the lane off the backboard as time expired.
The Heat wanted a foul on an O’Neale bump at the end of the play, but they didn’t get one.
Durant left in the third quarter due to a bruised right knee. He appeared to get hurt when Butler accidentally rolled onto his leg.
He finished with 17 points, four rebounds and two assists. He entered the game averaging 30.0 points.
The Nets, who have won 14 of their past 15 games, also got 13 points, 11 rebounds and three blocks from Nic Claxton.
James Harden delivered a triple-double with 20 points, 11 rebounds and 11 assists, Tyrese Maxey had 23 points and visiting Philadelphia rolled past Detroit in a 123-111 win.
Montrezl Harrell had 20 points and six rebounds and Paul Reed contributed 16 points and 12 rebounds off the bench for the Sixers.
Pascal Siakam scored 27 points as Toronto defeated visiting Portland 117-105.
There were also wins for the Indiana Pacers, the Memphis Grizzlies, the Minnesota Timberwolves, Oklahoma City Thunder, the Cleveland Cavaliers and the Atlanta Hawks.