Victor Wembanyama hit a 17-foot, pull-up jumper with a second left and the host San Antonio Spurs wrapped up a playoff spot to end a six-season drought, beating the Phoenix Suns 101-100 on Thursday night.

Wembanyama had 34 points and 12 rebounds. His winning jumper capped a furious final-minute rally to secure the top-six finish in the Western Conference.

De’Aaron Fox added 23 points and Julian Champagnie had 14 in the Spurs’ fourth straight victory.

Collin Gillespie scored 24 points for the Suns. They remain seventh in the West.

Pistons 117, Wizards 95: Jalen Duren had 24 points and 11 rebounds and visiting Detroit never trailed in a victory over Washington, the Pistons’ first game since All-Star guard Cade Cunningham was ruled out for at least two weeks with a collapsed left lung.

Tristan Vukcevic scored 21 for the Wizards, who lost their season worst-tying 14th consecutive game.

Hornets 130, Magic 111: Reserve Coby White had 27 points and led host Charlotte’s 3-point barrage in a rout of Orlando.

White shot 5 of 8 from beyond the arc and was one of four players with three or more 3-pointers.

Desmond Bane had 24 points to lead the Magic.

Cavaliers 115, Bulls 110: James Harden scored 36, Evan Mobley added 26 points and 14 rebounds and visiting Cleveland hung on to beat Chicago even though Cavaliers star Donovan Mitchell missed the game because of a bruised left eye.

The Cavaliers hung on after a 29-point lead in the third quarter dwindled to one in the game’s closing minutes.

Tre Jones scored 20 for the Bulls.

Jazz 128, Bucks 96: Ace Bailey made seven 3-pointers and scored 33 points and host Utah snapped a four-game skid with a win over Milwaukee.

Bailey also had nine rebounds for the Jazz.

Ryan Rollins led the Bucks with 15 points and five assists.

76ers 139, Kings 118: Rookie VJ Edgecombe scored a career high 38 points with 11 assists, Justin Edwards was 7 of 11 from 3-point range and finished with 32 points and visiting Philadelphia beat Sacramento.

Maxime Raynaud led the Kings with 30 points.

Nets’ Porter out with hamstring strain: Michael Porter Jr. will miss at least two weeks with a strained left hamstring, perhaps leaving the Brooklyn Nets without their leading scorer for the rest of the season.

The Nets said Thursday that Porter would be evaluated again in two to three weeks, making it possible the best season of the forward’s career is over.

Porter is averaging a career-high 24.2 points, 7.1 rebounds and 3.0 assists in his first season in Brooklyn.