In search of an offensive spark, Claude Julien changed his lines last night against the Toronto Maple Leafs.

The B’s certainly got a boost in their 3-2 shootout win, but it wasn’t the result of any line change. It was a direct result of the ever-consistent Patrice Bergeron.

The 27-year-old once again stepped up, scoring the game-tying goal with 9:24 left in regulation and adding another goal in the shootout. Bergeron, who leads the team in points (27), has been the B’s most reliable player in this lockout-shortened season.

But after the game, he gave credit to his teammates.

“Playing with some great linemates and just using their speed as much as I can,” Bergeron said. “Trying to play my game on both sides of the rink and when there’s a chance, obviously find the back of the net.”

The Bruins returned home to the Garden after a 1-3 road trip in which they scored six goals. As a result, Bergeron started the game with Daniel Paille, in place of Brad Marchand, on his line for the first time with Tyler Seguin. The line had some decent opportunities but the Bruins went into the third period down 2-1. That’s when Julien put his normal lines back together and reinserted Marchand with Bergeron and Seguin.

It paid off.

On a shift change, Marchand dumped the puck into Toronto territory. Rookie defenseman Dougie Hamilton hustled to the puck behind the net and quickly fed Bergeron in the slot. The center was all alone and sent a backhander past James Reimer at 10:36 for ninth of the season.

“It was a good dump by Marchy to send Dougie there with speed. I was trying to get open for him to get me the puck,” Bergeron said. “I could’ve had the forehand but thought I had a better angle on my backhand so I just went with it.”

After Seguin opened up the shootout with a score, Bergeron followed and once again beat Reimer to help earn a much-needed win.