DALLAS (AP) — Luka Doncic scored 45 points in his first game in Dallas since being traded to the Los Angeles, helping the Lakers wrap up a playoff spot with a 112-97 victory over the Mavericks on Wednesday night.

Doncic's emotional return came two months after a seismic trade out of nowhere that sent the five-time All-Star to Los Angeles. The 26-year-old star from Slovenia spent his first 5 1/2 seasons with the Mavericks, and still had two seasons left on his contract.

The 45 points matched Doncic's season high — he did that once for Dallas and one other time for the Lakers. He also had eight rebounds, six assists and four steals.

LeBron James had 13 of his 27 points in the fourth quarter, when the Lakers fell behind before a strong finish.

Anthony Davis, who went from the Lakers to Dallas in the Doncic heal, had 13 points and 11 rebounds. Naji Marshall led the Mavs with 23 points and eight assists.

Takeaways

The Lakers remained third in the Western Conference standings after their third game in four days. They came to Dallas after splitting a pair of games at Western Conference-leading Oklahoma City.

Dallas (38-42) is guaranteed a losing record a year after making the NBA Finals. The Mavs are still in position to finish 10th and make the play-in tournament.

Key moment

James's three-point play with 8:10 left broke an 87-all tie and put the Lakers ahead to stay, and he added a layup 34 seconds later. That came after Dallas' 15-2 run.

Key stat

James' 1,561st career regular-season game moved him past Kareem Abdul-Jabbar for sole possession of second place on the NBA list. Only Robert Parrish with 1,611 has more than the 40-year-old James. It was his 418th game in seven seasons with the Lakers, after 849 games with Cleveland and 294 with Miami.

Up next

Both teams play their regular-season home finales Friday night, when the Mavericks take on Toronto, and the Lakers host Houston.

___

AP NBA: https://apnews.com/hub/nba

Los Angeles Lakers' Luka Doncic (77) and LeBron James, center, right, hug and celebrate late in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic (77) and LeBron James (23) celebrate in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic (77) and Rui Hachimura, center right, celebrate late in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic (77) makes a pass as Dallas Mavericks' P.J. Washington (25) and Max Christie, right rear, defend in the second half of an NBA basketball game in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Austin Reaves (15) and Luka Doncic (77) celebrate in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

A fan holds up a sign thanking Los Angeles Lakers' Luka Doncic as he stands on the court at rear late in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic gestures to an official in the second half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic (77) shoots as Dallas Mavericks' Naji Marshall (13) defends in the first half of an NBA basketball game in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic (77) gestures as he walks on the court during a time out in the first half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP

Los Angeles Lakers' Luka Doncic follows through on a shot in the first half of an NBA basketball game against the Dallas Mavericks in Dallas, Wednesday, April 9, 2025. (AP Photo/LM Otero)

Credit: AP

icon to expand image

Credit: AP