Talk about rotten luck. The final shot of the morning skate — propelled by none other than seventh defenceman Chris Breen — catches Karri Ramo on the knee.

After writhing on the ice “like a snake,” according to coach Bob Hartley, the Calgary Flames goalie gets up and goes directly to the dressing room.

And he’s supposed to start, hours later, against the Los Angeles Kings? Not likely.

But later in the morning, Hartley assures reporters that Ramo is fine.

And he was.

In steady fashion, Ramo made 21 saves — while Blair Jones scored a short-handed goal and Michael Cammalleri added a beauty with 23 seconds remaining — to lift the Flames to a well-earned 2-1 victory in National Hockey League action Saturday night at the Staples Center.

“It’s the old saying,” said Cammalleri, grinning. “Half the time when guys feel great at pre-game skate, they have bad games. And when they feel like junk in the morning, they have their best games. (Ramo is) a tough guy — he’s a hockey player. I don’t think a little bump or bruise will affect him.”

Added Hartley: “He played an outstanding game. Part of the reason that he played so well was the way that he works every day. Watching this guy in practice, watching this guy in the gym, I knew that he would be ready and he deserves big credit because that was not easy. It’s not an easy place to play. He gave us a big win.”

Stablemate Reto Berra had made 11 of the last 12 starts for Calgary.

But Ramo insisted that rust had not been a concern.

“I think I’m more nervous when I’m not playing, so it was a relief to be in the net,” said Ramo. “I felt pretty good. The guys did a really good job limiting their odd-man rushes. Our penalty-killing was really good, so that helped me a lot. I felt confident. I haven’t played in a while, but I knew the time would come when I’d play ... you have to be ready. That’s my job. It’s no excuse that you haven’t played a lot.”

Of Ramo, Cammalleri said: “He made some 10-bellers early, big ones. I thought it was inspirational, that start for him.”

In the morning, Hartley mentioned that he wanted “energy” from call-up Paul Byron.