Police have arrested 18-year-old Tyler A. Appel as a suspect in the Sunday shooting of a 17-year-old during a drug deal in Queen Anne on Sunday.

Appel is being held on $750,000 bail, and his second court appearance was Friday, Nov. 2. He is charged with first-degree assault, unlawful possession of a firearm in the first degree and first-degree robbery. He will be arraigned in King County Superior Court on Nov. 15.

The shooting victim told police he and two friends were watching movies at a home in the 2600 block of 10th Avenue West, and one friend texted someone around 1 a.m. about purchasing Xanax, according to a probable cause affidavit.

Appel and a still unidentified accomplice reportedly met the victim and one of his friends up the street for the drug deal, according to the affidavit, at which point the suspects reportedly informed them they’d been set up. At one point, Appel is alleged to have pulled out a revolver and aimed it at the victim and his friend.

A fight ensued between the victim and the second suspect, at which point Appel allegedly stepped forward and shot the 17-year-old man in the chest, causing him to fall to the ground. The victim told police the suspects then kicked him in his head and torso area.

Afterward, the suspects reportedly took the victim’s cellphone and casually walked away southbound to Appel’s white Pontiac Grand Prix.

“The defendant would likely be facing murder charges but for the fact that the victim miraculously survived after the defendant successfully shot him directly in the chest,” according to charging documents filed by the King County Prosecutor’s Office.

The victim’s friend then ran back to the home in the 2600 block of 10th Avenue West and called 911.

Appel was arrested Tuesday in the 3600 block of 23rd Avenue West, after an officer identified his vehicle as being connected to the robbery during a response to a trespassing complaint, according to the affidavit. Appel was seen leaving a residence there with his 15-year-old girlfriend, handing her a yellow backpack, and then walking away. He was arrested a short distance away without incident.

A loaded .45-caliber handgun was recovered from the bag, according to the affidavit.

According to the Nov. 2 charging document, the victim was saved by Harborview staff, but he still had a bullet lodged against his spinal cord as of Friday’s court filing.

Appel was booked into King County Jail for investigation of robbery, assault and unlawful possession of a firearm. The affidavit states Appel has a juvenile record that includes a history of robbery, as well as a mental health and drug history.

Appel pleaded guilty to first-degree robbery and second-degree solicitation to commit murder on July 16, 2015. The charging document states he set up another robbery victim, luring them into a wooded area where they thought they would be buying shoes. Appel pulled out a knife, and then chased the victim, slicing his arm; the victim gave Appel his iPhone and wallet.

In his plea statement, Appel admitted to later offering another boy in juvenile detention two pounds of marijuana to kill that robbery victim and his mother; they didn’t go through with it, according to court documents.

Appel was transferred to a community re-entry facility in September 2016, according to charging documents, and then escaped a month later. He then planned another robbery on Nov. 2, 2016, for which he was charged with second-degree robbery. Appel borrowed a bus passenger’s cellphone, powered it off, and then threatened them when they refused to give him their pin, according to court documents. He then fled the bus with the victim’s cellphone. His case was refiled as first-degree theft and first-degree escape in juvenile court.

“The defendant has now nearly murdered someone for the second time,” the charging document states. “This Court must not allow him the opportunity to attempt to murder a third victim.”