Orlando Magic forward Evan Fournier (10) dunks the ball during the first half.

Phelan M. Ebenhack AP

ORLANDO, Fla. (AP) -- Russell Westbrook banked in a 3-pointer from just inside midcourt at the end of regulation on his way to 48 points, Kevin Durant scored 43, and the Oklahoma City Thunder rallied to beat the Orlando Magic 139-136 in double overtime on Friday night.

Westbrook also added 11 rebounds and eight assists. Durant finished with 12 rebounds.

More from FoxSports

Orlando had a chance to tie it with six seconds to play, but twice had 3-point attempts blocked by Durant.

Oklahoma City trailed by as many as 18, but outscored the Magic 42-24 in the fourth quarter. Westbrook had 14 points in the extra periods.

Tobias Harris led the Magic with 30 points. Nik Vucevic added 26, and Victor Oladipo had 21 points, 13 rebounds and 10 assists. His 3-pointer forced the second overtime.

The Thunder got out to a five-point lead in the first overtime, but the Magic were able to get it down to 124-123 with 38 seconds remaining. Orlando had a chance to take the lead, but Evan Fournier came up empty on a jumper.

Out of a timeout, Westbrook got free and dropped in a 17-footer with 7.8 left.

But with the clock winding down the Magic got the ball to Oladipo in the corner, and he got his 3-pointer to go as time expired.

The Magic had no answers against Oklahoma City last season when they gave up a franchise-record 79 points in the first half of a game.

The roles were reversed in the opening 24 minutes of regulation on Wednesday night.

Orlando scored 67 points in the first half, hovering near 70 percent shooting for a good portion of it.

TIP-INS

The Thunder were held to just 22 points in both the second and third quarters. ...Westbrook was 2 for 11 from the field in the first half. ...Orlando has connected on a 3-pointer in 658 consecutive games, dating to March 17, 2007. ...The Magic announced Wednesday that Disney Parks has extended its sponsorship with the team and Amway Center arena.

UP NEXT:

Thunder: Oklahoma City hosts Denver on Sunday night.

Magic: Orlando begins a three-game road trip at Chicago on Sunday.