The engineer who drove the Amtrak train that derailed in Philadelphia in 2015, killing eight people, has sued the railroad company, alleging that it failed to provide a safe work environment after a nearby train was reportedly hit by a projectile minutes before his crash.

Brandon Bostian was driving Train 188 the night of May 12 when it derailed on the Frankford Junction curve in Port Richmond, shortly after leaving 30th Street Station.

The posted speed limit on the track was 50 mph, but the train was traveling 106 when it entered the curve.

The National Transportation Safety Board determined that Bostian was disoriented as he approached that part of the track, likely because he was distracted by radio reports of a nearby SEPTA train being struck by a projectile.

The object, probably a rock, shattered the SEPTA train's windshield. The engineer was hit in the face with glass and stopped the train.

Bostian's three-page complaint asserts that his train was "under attack":

"On or about May 12, 2015, and for some time prior thereto, plaintiff was employed by defendant Amtrak as an engineer and on that date in the performance of his duties he sustained serious, permanent and painful personal injuries. While operating a train that was under attack by projectiles, one of which caused plaintiff to become disoriented and or unconscious, plaintiff was caused to sustain injuries due to the negligence and carelessness of the defendant."

The complaint, filed on Wednesday in Common Pleas Court by attorney Robert S. Goggin III, seeks more than $50,000 in damages.

Goggin could not be reached for comment Thursday night.