Kevin Jairaj-USA TODAY Sports

Shai Gilgeous-Alexander scored 38 points to lift the Oklahoma City Thunder to a 117-111 overtime win over the Dallas Mavericks on Saturday in Dallas.

The Thunder have won three consecutive games.

It looked like their winning streak was going to end, though, before Isaiah Joe entered the game late in regulation.

Joe hadn't played until coming off the bench with less than five minutes remaining. He quickly gave Oklahoma City's offense a spark with seven points, a rebound and an assist as the Thunder closed regulation with an 18-2 run to force overtime.

With less than 20 seconds remaining, Gilgeous-Alexander grabbed a rebound and headed the other way, driving in the top of the lane before flipping the ball backward to Joe, who drilled the 3-pointer to tie the game.

Joe hit two more 3-pointers in overtime to help the Thunder pull away.

Before Saturday's game, Joe had played just six minutes this season, missing both of his 3-point attempts. Joe finished with 15 points, hitting all three of his 3-point tries. Until he got hot from outside, the Thunder were scuffling.

They finished 5 of 25 (20 percent) from behind the arc.

Gilgeous-Alexander was 15 of 27 from the field for a season-high in scoring. Luguentz Dort added 16 points and Darius Bazley scored 15 off the bench to help Oklahoma City.

The Thunder outscored Dallas 70-54 in the paint and 18-9 on the fast break.

Luka Doncic had his second consecutive triple-double for the Mavericks, leading them with 31 points, 16 rebounds and 10 assists. Doncic was just 8 of 23 from the floor, though, missing all six of his 3-pointers.

Dallas shot just 20 percent (8 of 40) from beyond the arc. Spencer Dinwiddie added 20 points for the Mavericks.

With the Mavericks on the first night of a back-to-back, and the game seemingly in hand midway through the fourth, it seemed as though Doncic might not get a chance at the triple-double.

But Dallas' star came back in, needing one assist to reach the mark.

The Mavericks shot just 1 of 10 the rest of regulation, though, and it wasn't until overtime that Doncic sealed the triple-double as the Thunder came storming back.

More must-reads:

TODAY'S BEST
Mavericks advance to Western Conference Finals aided by controversial call late
Connor McDavid, Oilers hammer Canucks to force Game 7
Tyson Fury-Oleksandr Usyk epic increases excitement for potential rematch
Seize the Grey wins in muddy Preakness
Even Mike Budenholzer admits the Suns need a point guard
Watch: Juan Soto's first multi-homer game as a Yankee
Xander Schauffele, Collin Morikawa lead at PGA Championship
Knicks could get major boost for Game 7 showdown with Pacers
Giants All-Star pitcher suffers setback in recovery from injury
Panthers star named winner of 2024 Selke Trophy
WNBA to investigate $100,000 sponsorship deals for Aces players
Tiger Woods blames one big factor for missing the cut at PGA Championship
'Ain't good enough': Draymond Green claims Celtics must 'win it all' or it's a 'failure'
Blue Jays GM wants struggling club to feel 'massive sense of urgency'
Raptors expected to flip former NBA champion during the offseason
MLB insider reveals Mets' massive extension offer that Pete Alonso turned down
Celtics legend provides update after gruesome finger injury
Bulls hire former NBA head coach as top assistant
Chiefs move on from young running back
20-year MLB veteran working out, unsure about playing future