Online court records don't list an attorney for 51-year-old James Sullivan, of Hempfield Township, who was charged in the incident about 8:30 p.m. Sunday.
Troopers from the Greensburg barracks say 51-year-old Barry Guy fell asleep on the ground near Sullivan's home when Sullivan saw a groundhog about two feet away from Guy.
Police say Sullivan was on his porch when he fired the rifle, hitting Guy in the foot.
Police say Sullivan told them the scope on his rifle "must have been off."
Trooper Steven Limani says the men had been drinking much of the day. Sullivan is charged with aggravated assault for his allegedly reckless conduct.