SACRAMENTO, Calif., Dec. 2 (Ticker) -- After Don Nelson got mad, Dirk Nowitzki made sure the Dallas Mavericks got even.

Nowitzki's four-point play helped forced overtime, where he scored seven of his 32 points to lead the Mavericks to a wild 120-114 victory over the Sacramento Kings.

The Mavericks avenged Thursday's 110-98 home loss to the Kings, but not before Nelson was ejected and watched from the locker room as his team squandered a 23-point lead and trailed by four points with under a minute left in the fourth quarter. TV highlights
from Mavs-Kings:
56k | 300k

Michael Finley shoots the jumper over Mike Bibby in Sacramento.
Rocky Widner
NBAE/Getty Images
In transition, Nowitzki pulled up for a 3-pointer that dropped as he was bowled over by Hedo Turkoglu. His free throw tied it, 103-103, with 55 seconds left.

"I was just playing hard and got lucky," Nowitzki said.

"That was huge," teammate Steve Nash added. "He gets a lot of those because he gets his elbow out when he shoots and often gets hit. That's not the first time he's done that, but with the timing of it tonight, it was a huge play."

Peja Stojakovic made 1-of-2 free throws and Nowitzki answered with two with 5.9 seconds to go, giving Dallas a 105-104 lead. With 0.2 seconds remaining, Nowitzki was whistled for a highly questionable foul on Stojakovic, who again made 1-of-2 to force overtime.

"I had a chance to finish the game," said Stojakovic, an 88 percent foul shooter. "I had two free throws at the end."

"I thought when he went to the line it was pretty much over," Nowitzki said.

That call by referee Dee Kantner had Mavericks assistant Donn Nelson well onto the court. Kantner's non-call on a drive by Nowitzki in the second quarter produced a similar reaction from Don Nelson, who was ejected.

"I'm an emotional coach, so you kind of get caught up in the game whether you like the call or not," the younger Nelson said. "You've got to keep your composure somewhat. I think I pushed the line to the limit on that one, but I'm certainly happy I didn't get a 'T.'"

"I thought I had a block. It was a tough call," Nowitzki said.

Nowitzki opened overtime with a reverse layup on a follow shot and a post-up jumper, giving the Mavericks the lead for good. After a 3-pointer by Turkoglu, Adrian Griffin and Nowitzki hit jumpers, extending the lead to 113-108 with 1:06 to go.

Nowitzki made 11-of-23 shots and 9-of-10 free throws. He added 14 rebounds and three blocked shots as Dallas handed Sacramento its first home loss of the season.

"This is the toughest building to me in the league," Nowitzki said. "It's a testament to their style of play, the fans, the high-octane brand of basketball they have here."

Nash scored a career-high 31 points on 12-of-17 shooting and Michael Finley added 19 points for the Mavericks, who shot 52 percent (45-of-87).

"This was just one of those magical NBA games that seemed like it had five or six fabulous moments," Donn Nelson said. "We knew that this team was gonna come back. They are too veteran, too savvy, too proud, especially in this building."

Stojakovic scored 31 points and Vlade Divac added 25 and 17 rebounds for the Kings, who made two huge comebacks but had a three-game winning streak snapped. Sacramento shot 41 percent (42-of-102).

Two free throws by Finley gave the Mavs their largest lead at 71-48 with 9:43 left in the third quarter.

Reserve guard Bobby Jackson started the second half in place of forward Scot Pollard and helped get the Kings back in the game. While Jackson energized the team, Stojakovic slid to forward and scored nine points in a 19-3 run that closed the quarter and pulled Sacramento within 83-80.

Divac's three free throws opened the fourth period and tied the game. Jackson's basket with 6:39 left gave the Kings an 89-88 lead, their first since the opening minute.

Nash scored eight points over the next three minutes, including a 3-pointer that gave the Mavs a 99-97 lead with 3:04 left. A driving dunk by Divac and consecutive inside hoops by Lawrence Funderburke put the Kings ahead, 103-99, with 1:36 to go.

Turkoglu scored 18 points and Jackson added 16 off the bench for the Kings, who lost guard Doug Christie when he banged his hand on the floor in the third quarter. Funderburke had eight points and 10 boards for the Kings, who held a 51-42 edge on the glass.

"It was a great comeback," Turkoglu said. "You look back and a 23-point comeback is pretty good. It was a great effort, but we made a couple mistakes."

"For us to be successful, we can't dig a hole like that," Jackson added. "Something like that takes a lot out of everybody."

Nash scored nine points in the first quarter as the Mavs led by as many as 12 points before settling for a 32-29 edge. After Don Nelson's ejection and a technical foul on Nowitzki, the Kings still were within 38-34 with 7:49 remaining.

But Nowitzki scored seven points in the last six minutes of the half and the Kings went cold, helping the Mavs open a 62-44 halftime lead.