Luka Doncic had 26 points, 14 assists and eight assists to lead the Dallas Mavericks to a 131-113 win over the Detroit Pistons on Wednesday night.

The Mavericks are 20 games above .500 for the first time since 2011, when they went on to win the NBA title. They’re set up to earn home-court advantage in the playoffs for the first time since coach Jason Kidd was their point guard during the championship season.

Also read: NBA at 75: Two decades of seismic shifts on and off the court

Dallas reached the 50-win mark for the first time in seven years, and just the second since winning their only NBA title.

Jalen Brunson had 24 points for the Mavericks, who have won five of their last six to build momentum going into the playoffs next week.

Also read: NBA: LA Lakers eliminated from playoff contention after Phoenix Suns loss

Rookie of the Year candidate Cade Cunningham had 25 points, nine assists and seven rebounds for the Pistons, who had won three straight to match what was their longest winning streak of the season.

Dallas led by as much as eight in the first, but trailed 34-32 after Donic and Cunningham each had their fourth assist over the last 3.4 seconds of the quarter.

Also read: NBA: Joel Embiid scores 45, 76ers beat Pacers to pull even in Atlantic

The Mavs moved back ahead in the second quarter and led 65-58 at halftime Donic scoring 16 points, making six assists.

Donic was called for his fourth foul at the 8:05 mark of the third. Kidd left him in the game and it turned out to be a wise move as Donic was dominant, making a 3-pointer and assist that put the Mavs ahead 93-77 late in the quarter.

Also read: Kareem Abdul-Jabbar makes U-turn from LeBron James ‘Daunting Hero’ remark

Dallas didn’t have any trouble keeping its comfortable cushion in the fourth.

Tip-Ins

Mavericks: Reserve Sterling Brown missed the game for personal reasons. … Forward Maxi Kleber (right ankle) missed a second straight game. … The Mavs have won five straight against Detroit, winning each game by double digits.

Pistons: The banged-up, rebuilding team was without several injured players Marvin Bagley (hip), Hamidou Diallo (finger), Jerami Grant (calf), Cory Joseph (back), Rodney McGruder (hip) and rested Kelly Olynyk. “I think we have a couple of coaches, and we are ready to go,” coach Dwane Casey joked. … Faces in the crowd included Michigan State coach Tom Izzo, sitting with former players Mateen Cleaves and Mat Ishbia, who had courtside seats.

Also read: NBA: Kristaps Porzingis scores 24 against Dallas Mavericks as Wizards win 135-103

Up next

Mavericks: Close the regular season at home against Portland on Friday night and San Antonio on Sunday.

Pistons: End the regular season against Milwaukee on Friday night at home and at Philadelphia on Sunday.