DALLAS -- As Dwyane Wade walked to the scorer's table in the first quarter, greeted by a mix of boos and cheers, Dallas Mavericks coach Rick Carlisle summoned Dirk Nowitzki to also check into the game for the first time.
The two-time NBA Finals foes whose relationship used to be "frosty," as Nowitzki puts it, stood next to each other and shared a laugh before entering the game together with 5:11 remaining in the first quarter. Nowitzki broke the ice by cracking a joke about Wade wrapping up his pregame warm-up by recreating the rebound and ball-throwing celebration from the last seconds of the Heat's title-clinching victory in Game 6 of the 2006 NBA Finals on this floor.
"I was like, 'That's bringing some bad memories back,'" Nowitzki said. "He was like, 'I had to do it. This was the building where everything started for me.' It was basically his coming-out party, the '06 Finals, and he hasn't looked back since. It's been a great career for him."
Wednesday also was a great night for Wade, who bid farewell to the American Airlines Center by scoring 22 points in 22 minutes to lead the Heat to a 112-101 win in their finale before the All-Star Game, when Wade and Nowitzki will meet again after being appointed as special additions by NBA commissioner Adam Silver.
Wade's final moments on the American Airlines Center court, where he has fond memories from 2006 and bitter memories from the Finals rematch with the Mavs five years later, were spent swapping jerseys with Nowitzki.
"I appreciate this, man," Wade told Nowitzki during the exchange. "It's an honor. It's an honor, man. Thank you for everything that you've done for my career."
Their rivalry grew icy after the Heat won the 2006 title, when Wade took offense to the Mavs' implication that officiating decided the series and snapped back months later by declaring that Dallas would have won the series if Nowitzki had been the leader it needed.
Wade added to the animosity when he, along with LeBron James, pretended to cough in front of cameras during shootaround before Game 5 of the 2011 Finals, mocking Nowitzki after he played with a 101-degree fever in the Mavs' Game 4 win.
But the hard feelings are water under the bridge, according to both future Hall of Famers. The jersey swap, a routine Wade is carrying out with opponents throughout the league during the retirement tour he has dubbed "One Last Dance," provided proof of the mutual respect that has developed between the rivals.
"One of my best jersey swaps of the year," Wade said. "To be able to have that, he's a Hall of Famer, somebody that obviously I've grown to have so much respect for. So, I'm just thankful that he didn't turn me down and say no, so I appreciate it."
Nowitzki joked that he felt "naked" while wearing only his tank-top undershirt on his upper body during the first on-court jersey swap of his career. Nowitzki, 40, has gone to great lengths to avoid an official farewell tour, acknowledging that he is leaning toward retiring at the end of this season, his 21st campaign, but delaying the decision until the summer. But he was glad he played a role in Wade's.
"It's a long time coming knowing that he's been doing that," said Nowitzki, who scored 12 points in 17 minutes on Wednesday. "I'll cherish his jersey, obviously, knowing the great competition we've had for a long, long time. He's a great, great player, one of the greatest guards we've had in our league.
"Like I said, there was some rough, rocky times in our relationship after '06. It went both ways. There was some stuff said we both didn't like, but at the end of the day, we're both competitors. You don't love most of your competition. But we're in this together. We're all family, and I'm happy for him. He had a heck of a career."
Wade was listed as questionable against the Mavs because of an illness after missing shootaround, but the 37-year-old admitted that Heat coach Erik Spoelstra basically just allowed him to stay at the hotel and get a little extra rest. Wade arrived at the American Airlines Center especially energetic, excited to play for his final game in an arena that was the site of extreme highs and lows in his career.
"It's one of those bittersweet kind of vibes," Wade said. "I've obviously had a lot of great memories here and a lot of not-great memories here, as well. Definitely bittersweet, but I enjoyed the environment tonight. There was a lot of support, a lot of fans, a lot of love, and I appreciate it.
"It was fun, man. It's moments where you go through this, for me this last dance, there's certain games that they are games. Then there are certain ones that are a little bit more special. To be able to play against Dirk and to be able to come here, where there are a lot of memories, this was different than some other games that I've played and that I probably will play. I had fun with tonight."
There were many Mavs fans with long memories who booed Wade -- considered a villain in Dallas since 2006 -- every time he touched the ball.
But there also were hundreds of fans wearing No. 3 Heat jerseys in the sellout crowd. They cheered loudly for Wade throughout the game and chanted, "We want Wade! We want Wade!" in the final minutes.
All of the fans were treated to vintage efforts by both all-time greats after they checked in together in the first quarter, with Wade scoring seven points and Nowitzki scoring six points in the frame. There was an especially memorable sequence featuring the two legends, with Wade swishing a corner 3-pointer over Nowitzki on one end and Nowitzki hitting a turnaround jumper after posting up Wade on the ensuing possession.
"There's a great karma to each one of them," Spoelstra said. "They are both winners, but humble winners. They have tremendous class. And as soon as Dwyane got his opportunity to go one-on-one against him in the corner, you just knew that somehow Dirk was going to get him with an opportunity on the other end.
"They are both ultimate winners, and they are the faces of winning franchises for a reason. They've both won at the highest level with dignity and grace, which is different than most. Fans root for that."