MIAMI (AP)Tyler Herro’s 3-pointer with 1.8 seconds left became the game winner, lifting the Miami Heat past the Sacramento Kings 110-107 on Wednesday night.

Herro had a game-high 26 for the Heat, who won for the second straight night after topping Golden State on Tuesday. Kyle Lowry scored 22 and Bam Adebayo added 20 for Miami.

Kevin Huerter and Domantas Sabonis each scored 22 for Sacramento, which got 19 from Malik Monk and 12 from Harrison Barnes. Sabonis added 12 rebounds and eight assists.

It was the first game in the NBA this season where neither team held a lead of more than seven points. Sacramento’s biggest lead was seven, Miami’s was six.

Herro added 12 rebounds and three blocks for Miami, which played without Jimmy Butler – sidelined with tightness in his left hip that caused him to miss his first game of the season. Sacramento was without De’Aaron Fox, who sat with a bone bruise on his right knee.

Calling this one back-and-forth wouldn’t do it justice.

There were 12 ties and 26 lead changes, and an 11-1/2 minute stretch of the second half where neither team led by more than three points. Davion Mitchell’s 3-pointer with 8:11 left in the third got the Kings within 62-59, and it stayed that way – a three-point-or-less game – until Huerter made a layup with 8:58 remaining to put Sacramento up 86-81.

The Kings led by seven off another score from Huerter with 7:27 remaining. Miami went up 103-99 on a 3-pointer by Strus with 1:43 left, the game was tied three more times from there – until Herro’s 3 decided the outcome.

TIP-INS

Kings: Fox went through a pregame workout, which the Kings took as a good sign. His knee issue is not expected to be a long-term problem. … Kings backup C Alex Len is from Ukraine, but this was a bit of a homecoming. He has an offseason residence in Miami Lakes, about 20 miles from the arena the Heat call home.

Heat: Victor Oladipo (left knee) and Omer Yurtseven (left ankle) still have yet to play this season. … Vincent missed a free throw midway through the second quarter, snapping a run of 23 consecutive makes from the line by Miami. The Heat were 20 for 20 on Tuesday vs. Golden State.

CHALLENGING

The Kings challenged an offensive foul call against Sabonis, an odd decision because of the timing (35.9 seconds left in the first half) and the situation (it was only his first foul). Sabonis entered Wednesday with 28 fouls so far this season, tied for fifth-most in the NBA and the Kings have found many of those calls puzzling.

PAYBACK

Miami lost last week at Golden State and Sacramento. This week, they returned home and beat the Warriors and Kings.

UP NEXT

Kings: Visit Orlando on Saturday, ending a five-day swing through Florida.

Heat: Visit Indiana on Friday, a quick one-game trip.

More AP NBA: https://apnews.com/hub/NBA and https://twitter.com/AP-Sports