CALGARY -- The Anaheim Ducks flipped the script on the Calgary Flames.
Ryan Getzlaf had a goal and an assist during a five-goal outburst in the third period and John Gibson made 25 saves to help the Ducks rally for a 6-3 win against the Flames at Scotiabank Saddledome on Friday.
Andrew Cogliano, Francois Beauchemin, Kyle Palmieri, Jakob Silfverberg and Hampus Lindholm also scored for the Pacific Division-leading Ducks (36-16-7), who won for the eighth time this season when trailing after 40 minutes; the Flames lead the NHL with 10 such victories.
The win also ended Anaheim's two-game losing streak and was the Ducks' second win in seven games.
"I think we were [desperate]," Getzlaf said. "We need to be at this time. I think everyone else is desperate right now and if you're not playing that way you're going to lose a lot of games as we've seen in the last two weeks here. It was nice to get one win and try to get this thing rolling back the other way again.
"We've been struggling a little bit the last couple of weeks. Tonight was one of those games where we looked like we took it upon ourselves to play hockey and get that killer instinct mentality, and that's what we need down the stretch."
Matt Stajan, Lance Bouma and Sean Monahan scored for Calgary, which has lost back-to-back games. It was the Flames' first loss this season when leading after two periods (14-1-0).
The Flames (32-23-4) begin a season-long seven game road trip through the Eastern Conference starting Tuesday against the New York Rangers.
"The mindset can't change. That's our situation," Flames coach Bob Hartley said. "Tomorrow morning, we wake up and it's another day. That's the battle that we're in. There won't be any freebies, so we need to bounce back. With all the teams jammed in this [playoff] chase right now, the ability of any team -- including ours -- to bounce back, to regroup, to refocus from a bad game, that could be a very important point towards the end. We're still in that mix. That's what we wanted, so let's forget about (Friday). There's not much we can do. I will certainly not keep the DVD of that game."
Anaheim started its big third period at 6:13. Cogliano picked up the puck in his own end, skated it through the neutral zone and burst wide in Calgary's zone before centering a pass to Beauchemin, who beat Jonas Hiller to tie the game 2-2.
"I think I just used my speed and Beauchemin made a great play going to the net," Cogliano said. "We were trying to get a lot of pucks funneled to the net tonight and I thought we scored goals by doing that. It was a great play by [Beauchemin]. He's a defenseman. He probably shouldn't be there, but sometimes you've got to push to make things happen."
A fortunate bounce put the Ducks ahead at 8:53. Getzlaf's slap shot from the point caromed off the end boards, hit the back of Hiller's leg and slid into the net for his 18th goal of the season to give Anaheim its first lead of the game.
"It's nice to have one bounce that way right now," said Getzlaf, who played his junior hockey with the WHL's Calgary Hitmen. "I felt like I've been shooting the puck a little bit more lately and haven't been able to hit the net a whole lot. It was nice to miss the net on that one.
"I meant to shoot it wide because there was a guy in my lane and I just didn't want to hit him. I wish I had that much knowledge of this building, but I don't quite have that."
Palmieri made it 4-2 at 11:35 when he picked the pocket of Flames forward Mikael Backlund in front of the net and beat Hiller. Silfverberg fired home a pass from Patrick Maroon at 14:45 to extend the lead to 5-2.
Monahan made it 5-3 at 18:10 on the power play with his team-leading 20th of the season, but Lindholm's clearing attempt from his own goal line hit the glass in Anaheim's end before curving into an empty net with 1:01 remaining.
"I thought that we needed this win. Bottom line," Cogliano said. "I don't think we've been playing the game we've been wanting to as of late, and I guess there's no better team than to beat in that situation as the Flames since they've been so strong. At the end of the day it came down to us. We weren't talking about what they were going to do. We needed to win, simple as that. It was a must-win in the third period for us and I thought we did that."
The Flames got off to a rare fast start and led 1-0 after the first period.
Flames forward Joe Colborne knocked down Cam Fowler's clearing attempt up the middle. Gibson stopped Colborne's initial shot, but Stajan knocked in the rebound his first goal in 17 games to give the Flames the lead.
It's the third time in the past 14 games Calgary has opened the scoring, and the 11th time this season the Flames have led after 20 minutes.
Calgary made it 2-0 at 11:02 of the second. Dennis Wideman kept the puck in at the Anaheim blue line as the Ducks started to head up ice and spotted Bouma behind the defense with a shot-pass that Bouma redirected behind Gibson for his 12th of the season.
It's the fourth goal in six games for Bouma, whose previous single-season high was five set in 78 games in 2013-14.
But Cogliano got Anaheim within one with 4:52 remaining in the period. The Ducks caught the Flames on a bad line change, and Corey Perry sent a shot that Hiller stopped. But the puck hit Cogliano, who was driving to the net in search of a rebound, and went past Hiller to cut Calgary's lead to 2-1.