Bam Adebayo made the go-ahead dunk with 27 seconds remaining and scored 24 points in the Miami Heat’s 113-109 comeback victory over the Atlanta Hawks on Friday night.

Jimmy Butler added 20 points, Kyle Lowry finished with 16 points and Tyler Herro had 15 for the Heat. They finished on a 10-2 run and won their sixth straight.

Also read: NBA: LeBron James ruled out of Lakers’ final 2 games due to ankle injury

Danilo Galinari’s 3-point attempt for Atlanta with nine seconds left bounced off the rim and Herro’s two free throws secured the victory.

It was the first of two meaningless games, standings-wise at least, for Miami to finish the regular season. The Heat were locked into the No. 1 seed for the Eastern Conference playoffs on Thursday and know that they’ll play Game 1 of a first-round series at home on April 17 against either Cleveland, Brooklyn, Charlotte or Atlanta, which dropped into a tie for ninth with Charlotte.

Also read: NBA: Nikola Jokic leads Denver Nuggets to playoff berth, first with 2K points, 1K rebounds, 500 assists

“This is a night that we wanted to come in with a winning mentality,” Herro said. “We know we had the one seed but everyone played tonight, wanted to compete. It’s good to get a win.”

Herro hit a 30-foot shot that bounced off the front rim and through the net, giving the Heat a 109-107 lead with 1:44 remaining. The Hawks responded on Trae Young’s floating jumper 17 seconds later.

Also read: NBA: McCollum’s 23 points leads Pelicans past Blazers, 127-94

Young scored 35 points for Atlanta. Bogdan Bogdanovic added 25 points, and Clint Capela had 17 points and 14 rebounds.

“All losses are tough,” Hawks coach Nate McMillan. “Tonight we didn’t execute the last five minutes of the game. Their pressure sped us up. We had some turnovers late. That was the difference.”

Also read: NBA: Brooklyn Nets make mid-game comeback against New York Knicks, win 110-98

Young scored Atlanta’s final 12 points of the second quarter for a 61-56 lead at halftime. But Young was limited to four points in the final period.

“It’s tough, we definitely had a chance,” Young said. “We put ourselves in a good position. They’re just a good team that keeps fighting until the end.”

Also read: NBA: Luka Doncic-led Dallas Mavericks beat Detroit 131-113 for 50th win

Miami coach Erik Spoelstra returned to the club after a two-game absence because of health and safety protocols.

“It was great just to find a way to gut out a close and competitive game,” Spoelstra said. “If I could have scripted it, this is what it would be. Back and forth, lead changes. It’s good to get back out there. It’s always good to be around the group.”