With Michal Neuvirth on the shelf with a lower-body injury, the Flyers were in the market for a goalie. Just days after reports that the Flyers turned down an offer with the Detroit Red Wings for goalie Petr Mrazek, a deal has come together.

The Flyers acquired Mrazek from the Red Wings for a pair of draft picks, a conditional fourth-round pick in 2018 and a conditional third-round pick in 2019.

Mrazek has a career record of 72-58-20 with a 2.60 GAA and .912 save percentage. This season, he is 8-7-2 with a 2.89 GAA, but has been playing well of late with a 5-2-2 record and 2.01 GAA in his last 10 appearances for Detroit.

Mrazek also posted a 27-16-6 record and 2.33 GAA last season in 54 games with Detroit.

Detroit is retaining half of Mrazek's salary, per The Athletic's Craig Custance.

The 2018 fourth-round pick is conditional based on results. If Mrazek wins five regular-season games for the Flyers for the remainder of the season, the pick becomes a third-round pick this year. If the Flyers advance to the Eastern Conference Final in the playoffs and Mrazek wins six playoff games, the pick becomes a second-round pick.

The 2019 third-round pick is conditional based on if Mrazek re-signs with the Flyers following the season. Mrazek is a restricted free agent following the season.

The conditions of the deal were first reported by TSN's Bob McKenzie.

The Flyers were essentially forced to make the move with Brian Elliott out for 5-to-6 weeks and Neuvirth suffering an injury on Sunday. The Flyers did not announce anything regarding Neuvirth's injury, but the assumption is that it is serious enough for the Flyers to make a deal of this magnitude.

The Flyers play host to the Montreal Canadiens on Tuesday night at 7 p.m.

Kevin Durso is Flyers editor for SportsTalkPhilly.com. Follow him on Twitter @Kevin_Durso.

More From 97.3 ESPN