The Milwaukee Bucks got big performances from their two brightest stars in a 131-124 win over the Miami Heat on Tuesday to clinch a quarterfinal spot in the In-Season Tournament.

Giannis Antetokounmpo scored 33 points and Damian Lillard added 32 to help the Bucks win East Group B with a 4-0 record.

Milwaukee will host wild-card New York on either Dec. 4 or 5, with East Group C winner Boston going to Group A winner Indiana for the other quarterfinal before the Final Four in Las Vegas.

Miami, which was without second-leading scorer Jimmy Butler, dropped its second straight following a 9-1 stretch.

Bam Adebayo scored 31 points and Kyle Lowry had 21, including a 3-pointer with 3:25 remaining to put the Heat up 118-115.

The Bucks, though, finished on a 16-6 run, going 5 for 6 from the field and 5 for 5 from the line. Lillard made two free throws with 63 seconds to play to help put it out of reach.

Milwaukee lost forward Pat Connaughton to a sprained right ankle in the second quarter.

Kings rally past Warriors to advance

Malik Monk sank a fadeaway with 7 seconds remaining and the Sacramento Kings rallied from 11 down in the fourth quarter for a 124-123 win over the Golden State Warriors.

De’Aaron Fox scored 29 points and Monk and Kevin Huerter each added 21 for the Kings, who won their group with a 4-0 record and will host New Orleans next week in the quarterfinals.

Sacramento needed a win or a loss by 11 points or fewer to advance but erased a 21-point deficit to win for the seventh time in nine games.

Stephen Curry and Andrew Wiggins led the Warriors with 29 points apiece, but Golden State dropped to 2-8 in its last 10 games.

Timberwolves star Edwards injured in win

Rudy Gobert had 17 points, 16 rebounds and four blocks as the Minnesota Timberwolves overcame an injury to star guard Anthony Edwards in a 106-103 victory over the Oklahoma City Thunder in the In-Season Tournament.

Edwards had 12 of his 21 points in the third quarter before landing hard on his right side during a dunk attempt and leaving with a bruised right hip.

Coach Chris Finch had no more details on the injury or whether Edwards would miss time.

Shai Gilgeous-Alexander led the Thunder with 32 points on 13-of-22 shooting but his 37-foot try at the buzzer, his only 3-point attempt of the night, was well off the mark.

Reserve Troy Brown Jr. scored 17 points and Naz Reid added 15 for Minnesota, which improved the West’s best record to 12-4.