A man charged in a Pittsburgh-area mall shooting that wounded three people has been acquitted of attempted murder but convicted of other charges.

A judge convicted 18-year-old Tarod Thornhill of aggravated assault, reckless endangering and firearms crimes Monday in Allegheny County.

Defense attorney Chris Urbano acknowledges Thornhill shot his 20-year-old target and wounded two shopping bystanders in February 2015 in Macy's at the Monroeville Mall. But he says Thornhill was mentally ill and didn't know his actions were illegal or was unable to control them.

Prosecutors say Thornhill was recorded on a jail phone call being told by a woman to fake insanity.

The defense calls the judge's decision fair and says it's glad Thornhill will get mental health treatment.