FLINT, MI - A Flint Township man has reached a plea agreement for a shooting after his victim identified his assailant by spelling information with his own blood.

Dequann Jerill Peterson, 25, appeared before Genesee Circuit Judge Richard B. Yuille on Monday, Nov. 28, and pleaded no contest to charges of assault with intent to murder and felony firearm.

A no contest plea is not an admission of guilt, but is treated as such during sentencing.

The agreement calls for a minimum sentence of 10 years in prison, including two years for felony firearm and eight years for assault with intent to murder.

Counts of armed robbery, felon in possession of a firearm and carrying a concealed weapon were dismissed as part of the agreement.

Peterson was arraigned in May 2015 after being accused of shooting 33-year-old Matthew Totin of Grand Blanc twice -- once in his face and once in his back.

The shooting happened on the afternoon of April 30, 2015. Police were called to a condominium complex near Fenton and Baldwin roads around 1:30 p.m. where they found a man lying outside on the ground, said Mundy Township Police Chief Dan Atkinson.

According to a Mundy Township Police report read aloud in court by Yuille, Totin, who was listed in critical condition after the shooting, was "alert and conscious" when police found him at the scene, but had difficulty speaking.

When asked if he had been shot and if he knew who shot him, he was able to mumble "yes," according to the report. When police asked the name of the shooter, Totin used his own blood to draw the letter "Q" on the ground -- Peterson's street name.

Totin also used his blood to write the type of the car the suspects fled in, and helped officers to identify Peterson and Jaquiel Javon Gardner, 23, of Flint, who pleaded guilty to accessory after the fact in 2015 and was sentenced to a year of probation.

In a statement to police, Peterson said he met Totin for a drug transaction, but "got scared and pulled his gun out" when he thought Totin was "reaching for something."

Police also found drug paraphernalia near Totin when they arrived at the scene.

"It was a drug deal gone bad," said Genesee County Prosecutor David Leyton. "The victim was in favor of a resolution."

Sentencing is scheduled for Jan. 9.

The victim, Totin, currently faces several charges in Charleston County, S.C., including second-degree burglary and possessing or selling a stolen vehicle, according to South Carolina court records.