DALLAS _ The Orlando Magic finally found their offense, but it wasn't quite enough to beat Luka Doncic and the Dallas Mavericks.
Doncic scored 21 of his 26 points in the second half and the Mavericks held on for a 107-106 victory over the Magic on Wednesday night at American Airlines Center.
Markelle Fultz came up with two key steals in the final minute, but the Magic possessions ended abruptly with offensive foul calls against Aaron Gordon. The second one came with 7.7 seconds left to play and the Magic trailing by one. The foul also disqualified Gordon.
But Seth Curry missed the ensuing free-throw attempts and Jonathan Isaac rebounded. That set up the Magic's final play. D.J. Augustin penetrated and kicked it out to Nikola Vucevic for a wide-open 3-point attempt. The ball caromed off the rim and bounced into the air as the Magic came up short.
The Magic (2-6) dropped their fourth straight overall and fourth in a row on the road.
Gordon had a season-high 23 points for the Magic, who scored 100 points for the first time this season.
Vucevic finished with 19 points while Isaac, Augustin and Michael Carter-Williams each had 13 for the Magic.
Isaac also had 10 rebounds, four steals and six blocked shots.
Maxi Kleber had 14 points for the Mavericks (5-2), who extended their home winning streak to eight against the Magic.
The Magic built a 71-60 lead with 6:19 left in the third quarter after a three-point play by Fultz.
But the Mavericks closed out the quarter with a 16-8 run as Doncic sparked the burst with eight points.
The Magic wouldn't go away and rallied for a 102-100 lead on a layup by Augustin, his 8,000th career point.
The Magic return home Friday to take on the Memphis Grizzlies in the first of five straight games at Amway Center.