CHICAGO — James Ennis scored 22 points, Wendell Carter Jr. added 19 points and 12 rebounds, and the Orlando Magic snapped a six-game losing streak by beating the Chicago Bulls 115-106 on Wednesday night despite big performances by Zach LaVine and Nikola Vucevic.

The Magic outscored Chicago by 20 in the third quarter to turn a one-point lead into a 93-72 advantage and hung on after Chicago cut it to 104-98. Carter scored on a tip-in and Michael Carter-Williams dunked to make it a 10-point game with 3:12 remaining.

LaVine scored 30. Vucevic had 29 points and 11 rebounds in his first game against the Magic since they dealt the two-time All-Star to Chicago at the deadline. But the Bulls fell to 3-8 since the trade.

Ennis shot 5 of 6 from 3-point range. He also scored 12 points in the third.

Carter, acquired in the Vucevic trade, came up big in his first game against the team that drafted him with the No. 7 overall pick in 2018. Gary Harris and Carter-Williams scored 15 apiece.

Vucevic, who played 8 1/2 seasons with the Magic, made five 3-pointers to finish one shy of his career high.

LaVine scored 21 in the fourth quarter. Daniel Theis finished with 16 points, but the Bulls dropped their fourth in a row.

Vucevic clearly came to play against his former team, scoring 16 in the first half. He nailed all four 3s, hitting one on the game’s opening possession and burying a buzzer beater to cut it to 54-53 after Chicago trailed by as much as 12.

But the Magic dominated Chicago 39-19 in the third with Ennis making three 3s in the period.