Scott Hartnell had a hat trick and the Philadelphia Flyers staged their biggest comeback in 20 years by erasing a four-goal deficit in the third period and beating the Carolina Hurricanes 6-5 in a shootout victory Thursday night.