Dallas Mavericks rookie Cooper Flagg on Wednesday was ruled out for the second half of their 118-109 loss to the Denver Nuggets after the No. 1 pick sprained his left ankle in the first half.

Flagg was called for a foul while defending against Peyton Watson and turned the ankle as he fell to the floor with 6 minutes, 1 second left in the second quarter.

Flagg limped to the bench and continued to the locker room, but returned for the final 2 minutes, 35 seconds before the break.

Photo: Jerome Miron / Imagn Images

The 19-year-old did not come out for the second half before the announcement that he was out for the game.

Flagg injured the same ankle two nights earlier, leaving briefly to get it taped before returning and leading Dallas with 27 points in a 113-105 victory over the Brooklyn Nets.

“He stepped on someone’s foot,” coach Jason Kidd said. “Last game, he twisted his ankle, too. We decided to hold him [out] for the second half.”

Kidd said he did not know if Flagg, who was not available to reporters after the game, or center Daniel Gafford would play the second game of a back-to-back against Utah.

Gafford was ruled out during the second half against Denver with a right ankle sprain that has bothered him for most of the season.

Flagg was playing his 40th game, three more than his only season as a Duke standout when he led the Blue Devils to the Final Four as The Associated Press men’s player of the year.

The NBA Rookie of the Year contender is averaging 18.8 points and 6.3 rebounds per game.

Before Gafford exited, the Mavericks were already without their top two frontcourt players in 10-time All-Star Anthony Davis and young center Dereck Lively II. Davis is expected to be sidelined about six weeks with ligament damage in his left hand, and Lively is out for the season following foot surgery.

“This is a hard time for us,” Kidd said. “We have had a lot of injuries… We have been hurt since day one of training camp. This is the norm. The character has been displayed in tough times of being down, but we keep fighting.”

Elsewhere on Wednesday, it was:

‧ 76ers 107, Cavaliers 133

‧ Bulls 128, Jazz 126

‧ Clippers 119, Wizards 105

‧ Kings 112, Knicks 101

‧ Pacers 101, Raptors 115

‧ Pelicans 116, Nets 113