Updated

Devin Setoguchi scored in the fourth round of a shootout in the Minnesota Wild's 3-2 comeback victory over the Calgary Flames on Thursday night.

Dany Heatley and Darroll Powe scored in regulation for the Wild. Josh Harding stopped 27 shots and all four Calgary shots in the shootout to hand the Flames their fourth straight loss

Lee Stempniak and Anton Babchuk scored for Calgary, which failed to gain ground in the race for a playoff spot in the Western conference.

Powe tied it at 2 with 7:37 left in the third when his shot trickled over the goal line. Officials originally ruled no-goal, but changed the call after a replay review.

Setoguchi beat Miikka Kipprusoff with a wrist shot on the stick side, and Harding stopped Blake Comeau to seal the victory.

The Flames took a 2-0 lead early in the second period when Babchuk scored unassisted with the Flames on a 5-on-3 power play. It was Babchuk's first goal since March 9, 2011, against Dallas.

Because one of the Minnesota penalties was a high-sticking double-minor, the Flames had a 5-on-3 advantage for another minute, but failed to score again and break the game open.

Then the Wild woke up.

Getting outshot 21-4 with 16:08 left in the second, Minnesota started putting pressure on Kiprusoff.

Heatley finally broke through with a power-play goal midway through the second, his first goal in nine games and second in his last 17.

Wild captain Mikko Koivu returned from a shoulder injury after missing 15 games and centered the top line with Heatley and Setoguchi. Koivu has missed 27 games this season. The Wild are 23-16-7 with Koivu in the lineup and 8-16-3 when he's out.

The Flames entered the night tied with San Jose for 10th in the Western conference, trailing Phoenix and Los Angeles for the eighth and final postseason berth.

Calgary has scored just five goals during its four-game skid. The losing streak comes after the Flames won a season-high five in a row.

It also was the first time the Flames have lost this season when leading after two periods.

Calgary is 5-15 in overtime and Minnesota is 9-10.

NOTES: Wild winger Matt Kassian missed the game with a groin injury. ... Calgary defenseman Jay Bouwmeester played his 581st straight game, putting him alone in sixth place on the NHL's ironman list. ... The NCAA champion University of Minnesota women's hockey team watched the game from a suite. ... St. Paul police SWAT team officer Joe Reginek was lowered upside down from the ceiling of the Xcel Energy Center for the ceremonial opening faceoff.