TORONTO, Nov. 28 (Ticker) -- Dirk Nowitzki recovered from a horrible first half and gave Jason Terry a chance to get the Dallas Mavericks back on the winning track.

Nowitzki scored 24 of his 29 points in the second half and Terry nailed a runner at the buzzer as the Mavericks posted a 93-91 victory over the Toronto Raptors.

NBA TV highlights from
Mavericks-Raptors:
Play
Dallas had a seven-game winning streak snapped and lost starting forward Josh Howard to a sprained right ankle in Saturday's resounding 112-92 home setback to Memphis.

"Coming off a tough loss at home, it was important for us to come in here and get a win, no matter how," said Terry, who scored 26 points. "With guys out of the lineup, we needed it. It was a total team effort."

The Mavs were in position to lose consecutive contests for the first time this season after the Raptors used a 9-0 run to take an 89-83 lead with just over two minutes remaining.

Nowitzki, who made just 2-of-10 shots in the first half, missed a turnaround jumper, but Erick Dampier grabbed the rebound and passed it back to Nowitzki, who made a 3-pointer with 1:42 left.

"They miss the shot, the ball falls on the floor and we don't get (the rebound) and they throw it out and hit a three," Raptors coach Sam Mitchell said. "We get the rebound, it's a different game."

Fifty seconds later, Terry stole the ball from Toronto's Chris Bosh and found Nowitzki for another shot from beyond the arc to forge an 89-89 tie with 53 seconds to go. Mike James had his layup blocked by Dampier and Matt Bonner missed a 3-pointer on the other end.

"The bottom line is this, at the end of the game, you have to make plays," James said. "They made the plays and we didn't. That's what it all comes down to."

Nowitzki grabbed the rebound and drained a short jumper for a 91-89 lead with 18 seconds on the clock.

"In the first half, I had some great looks but nothing really seemed to fall," said Nowitzki, who also collected 11 rebounds and five assists. "My team was behind me 100 percent and they kept telling me to do what I do, and that's score."

"That's why he is our MVP," Terry said. "He relishes those situations and we told him to just keep shooting it."

Bonner answered with a long jumper to tie it with two seconds left before Terry received an inbounds pass from Marquis Daniels and drained a running one-hander over Bosh as the buzzer sounded.

"I was praying in the huddle that coach would call my name," said Terry, who had missed two free throws with 1:21 to go in the fourth quarter. "I've been in that situation time in and time out and I love it. I want the ball in my hands. I got to the basket, threw it up and it went in. I work on that shot a lot."

"We wanted to get the ball to J.T.," Dallas coach Avery Johnson said. "He's our guy and we like him in the fourth quarter. It was a tough win and I'm really proud of the way our guys hung in there."

Bosh had 26 points and 10 rebounds and James added 22 points for the Raptors, who have lost five straight games. Four of those setbacks have come by three points or less.

"We just have to work on our mental concentration down the stretch of a game," Bosh said. "They just got the loose balls down the stretch and we came up short again. Some teams can afford to make mistakes down the stretch and still win. That's not the case for us."

Devin Harris scored 16 points off the bench for Dallas, which has won four straight meetings with Toronto and 10 of the last 12.