TORONTO >> Scottie Barnes had 17 points and 11 rebounds, RJ Barrett scored 19 points and the Toronto Raptors overcame a 21-point deficit to beat the struggling Orlando Magic 109-93 on Wednesday night.

Gradey Dick scored 17 points and Bruce Brown had 15 as Toronto snapped a four-game losing streak against Orlando.

The Raptors won for the first time this season when trailing at halftime. Toronto came in 0-23 in such games.

Dick had 10 points in the third, including two dunks, as the Raptors outscored Orlando 40-20 to turn a five-point halftime deficit into a 15-point advantage.

Paolo Banchero had 26 points and 12 rebounds for Orlando, which couldn’t hold on after taking leads of 10-0 and 32-11 in the opening period. The Magic have lost four straight.

Trail Blazers 116, Heat 107 >> Anfernee Simons scored 24 points, Deandre Ayton had 22 points and 15 rebounds, and Portland beat Miami.

Jerami Grat finished with 18 points and Deni Avdija added 16 for the Blazers, who lost by 60 the last time they played in Miami on March 29.

Shaedon Sharpe had 12 points while Scoot Henderson and Dalano Banton finished with 11 each.

Rookie Kel’el Ware had 20 points and 16 rebounds and Duncan Robinson finished with 22 points for the Heat, playing without leading scorer Tyler Herro, who missed his first game of the season because of groin tightness.

The Blazers extended a six-point lead early in the third period with a 21-8 run. Ayton scored eight points during the surge that put Portland ahead 86-63.

Down 21 early in the fourth, the Heat narrowed the gap with a 19-4 run. Jaime Jaquez’s two free throws with 1:58 remaining got Miami within 112-105 before Grant made three of four free throws to give Portland a 115-105 lead with 35 seconds left.

Knicks 99, Nets 95 >> Karl-Anthony Towns had 25 points and 16 rebounds, Jalen Brunson scored eight points down the stretch and finished with 17 as New York beat Brooklyn.

OG Anunoby scored 20 points and Precious Achiuwa had 11 points off the bench as the Knicks won their second straight game.

D’Angelo Russell finished with 23 points and 10 assists and Cam Johnson scored 16 for the Nets, who have lost four straight games and nine of their last 10.

New York had a double-digit lead in the third quarter before the Nets rallied and moved out to a one-point lead at 88-87 on a 3-pointer by Keon Johnson with 5:18 left.