If he had shot up a school because of his mental condition, we would be talking about firearm laws instead of what caused his mental condition.
Maybe some would, but not me. The human with free will is still the one who pulls the trigger.