HOUSTON (AP) -- Dallas coach Rick Carlisle told his team before Saturday night's game in Houston that the playoffs were starting right now, and the Mavericks responded with a pivotal victory.
Dirk Nowitzki scored 31 points, Jason Terry added 24 and Brandan Wright had a career-high seven blocks to help the Mavericks beat the Rockets 101-99 in overtime.
The Mavericks came into the game with only a half-game lead over Houston, Utah and Denver in the tightly bunched Western Conference standings. Carlisle emphasized the importance of the game in his pregame message to his team, and the defending champions took it to heart.
Especially Terry, who scored 14 of his points in the fourth quarter and overtime.
" He said it was a playoff game,'' Terry said, " and that's all I needed to hear."
Shawn Marion had 12 points and a season-high 15 rebounds and Wright scored 14 points for the Mavericks, who beat Houston for the fifth straight time.
This meeting took on a postseason feel, with 17 lead changes, 15 ties and a rowdier-than-usual crowd at the Toyota Center split between fans of both teams. Nowitzki needed four stitches to seal a cut over his right eye, another sign of the game's intensity.
" This kind of game, you have to grind it out,'' Nowitzki said. " But we hung in there and found a way at the end to win, even though it wasn't a pretty game."
Goran Dragic scored 24 points, and Luis Scola added 19 for the Rockets, who had all five starters in double figures.
" You can't expect much more than we had today,'' Scola said. " We needed this game. It's a shame we weren't going to have it."
Nowitzki split two free throws with 10.9 seconds to go to put the Mavericks up 91-88, but Chandler Parsons swished a 3-pointer over Jason Kidd to tie it with 3.3 seconds remaining. Kidd tried a lob to Wright on a set inbound play, but Courtney Lee swatted it away and Terry's last-second shot from the free-throw line bounced off the rim.
The Mavericks took a 97-93 lead in overtime. Scola sank two free throws to cut the deficit to two and Lee hit a long jumper that initially appeared to be a 3-pointer. But the officials reviewed the shot and ruled that Lee's foot was over the line, and the game was tied at 97-all with 90 seconds left.
Dragic then was whistled for an offensive foul for pushing off Nowitzki. The Dallas star was cut over his right eye and went to the bench for stitches and a bandage. Terry then hit a pull-up jumper with 36 seconds to go, and Wright blocked Lee's jumper on Houston's next trip.
Nowitzki sank two free throws with 18 seconds remaining to make it 101-97. With the points, Nowitzki moved past Charles Barkley and into 19th place on the NBA's career scoring list (23,758).
" That's obviously great,'' said Nowitzki. " Charles was always my hero."
Dragic drove for a reverse layup, and the Mavericks were called for a backcourt violation, giving the Rockets one more chance to tie it.
Chase Budinger missed a 3-pointer from the corner at the buzzer, and the Mavericks beat Houston for the 12th time in the last 16 meetings.
" It was the biggest win of the year for us," Carlisle said.
The Mavericks won for only the second time in their last 10 road games, despite getting outrebounded 52-38. Houston went 9 for 25 from 3-point range (26 percent), but only 37 of 96 (38.5 percent) overall.
" We battled hard out there, but we just could not get it,'' Houston coach Kevin McHale said. " We just could not keep it going."
The Rockets led for much of the first half, but Kidd hit back-to-back 3s - one from six feet beyond the arc - during a 12-4 Mavericks' run in the second quarter. The Mavericks surged ahead with Nowitzki on the bench, and he returned for the final two minutes of the half.
Parsons just beat the buzzer with a layup then cut Houston's deficit to 56-54 at the break. Nowitzki scored 16 points in the first half, then made four shots in the first six minutes of the third quarter.
Notes: The Mavericks are 15-1 when scoring 100 points this season. ... The Mavs' bench outscored Houston's reserves 44-13. ... Yao Ming and his wife, Ye Li, sat courtside with 22-month-old daughter Yao Qinlei. The girl will turn 2 on May 21. ... The in-state rivals were meeting for the first time this season. They'll play again Tuesday night and on April 18, both times in Dallas.