DALLAS - Twice in the final minute with a one-point lead, the Dallas Mavericks committed a turnover, including the last of their 17 miscues on a bad pass from young triple-double phenom Luka Doncic with 10 seconds left.
And twice in the final minute, the Mavericks drew a charge on Aaron Gordon, only to give the Orlando Magic one more chance to win when Seth Curry missed two free throws.
Nikola Vucevic missed an open 3-pointer just before the buzzer after the two calls against Gordon and Curry's misfires, Doncic scored 27 points and the Mavericks held on for a 107-106 victory Wednesday night.
"They saved me," Doncic said of the Dallas D after finishing with seven rebounds and seven assists while chasing a third straight triple-double for the first time in the reigning rookie of the year's career. "I didn't do the right play on the offense. They saved me on the defense."
The first call against Gordon came with 34 seconds to go on a drive in the lane against Dorian Finney-Smith, who used to be the primary defensive specialist for the Mavericks before they added Delon Wright in the offseason.
Just three seconds after Doncic's turnover, Gordon got his sixth foul for pushing off against Tim Hardaway Jr. at the 3-point line. The Magic finally executed what they wanted on offense after Curry's misses, but Vucevic's shot from just right of the key bounced off the rim.
"It's two plays down the stretch," said Gordon, who led Orlando with 23 points but scored just two after halftime as the Magic dropped their fourth straight game in the 10th consecutive loss for the road team in this series.
"One, I like the way I was being aggressive. The other one, I could have made a better decision. We still got a good shot at the end. It's what we wanted but executing down the stretch there's a couple of things we could have done better for sure."
Vucevic had 19 points and 11 rebounds, while Jonathan Isaac finished with 13 points and 10 boards.
J.J. Barea, a 13-year veteran with a history of bringing energy off the bench for the Mavericks, made his season debut in the second quarter and had 11 straight Dallas points -- all of his scoring -- while Doncic and fellow Euro star Kristaps Porzingis were struggling.
Three consecutive 3-pointers from Barea helped Dallas get within two at halftime (56-54) after trailing by 10 in the first half. He was considered healthy when the season started but didn't play the first six games after an Achilles injury limited him to 38 games last season.
"I was playing with my kids and my dog in my house, doing all type of stuff," Barea said. "But I felt good out there. I think it's the longer I waited, the better it gets. So I'm not mad about it."
Porzingis scored 10 points on 4-of-14 shooting with eight rebounds. Maxi Kleber scored 14, and Dwight Powell added 12. Doncic was 1 of 7 from 3, with the only make in the fourth quarter. Porzingis was 1 of 5 from beyond the arc.
Magic: Scored 100 points for the first time this season. ... Steve Clifford coached his 500th game. His record is 240-260. It's Clifford's second season in Orlando after five with Charlotte. ... Carter-Williams didn't attempt another 3 but finished with 13 points along with D.J. Augustin. ... Vucevic matched Doncic for the game high with seven assists.
Mavericks: Doncic has scored at least 25 points in six of seven games this season. ... Justin Jackson scored a season-high 11 points, including a layup on a nifty bounce pass in transition from Hardaway to cap a 15-3 run in the third quarter. Dallas erased Orlando's biggest lead of the game (11 points) for a 75-74 lead.
Hardaway capped a plus-15 showing with his play on Gordon in the final seconds. He scored 13 points. "I saw him going full speed," Hardaway said of Gordon. "I saw when he was dribbling, he had his left hand out. I just wanted to make sure I got into him enough to make him extend his arm. And once he extended the arm, they have to call that. That's one of the rules that they put in this year."
SHAKY START FROM 3
Orlando, second-to-last in the NBA at 27 percent from 3-point range coming in, missed all seven 3s in the first quarter, capped by Michael Carter-Williams' air ball while wide open in the corner in the final seconds of the first. Gordon was 9 of 11 from the field before halftime, including the only 3 before the break for the Magic, who finished 6 of 24 (25 percent) from long range.
Magic: Memphis on Friday to start a five-game homestand, the longest of the season.
Mavericks: Knicks at home Friday.