CALDWELL -- A Greenleaf man who shot a teenager during a botched drug robbery was sentenced Tuesday to 15 years in prison.

Isaiah Zuniga, 22, will be eligible for parole after serving four years of his sentence.

The details of the sentencing were hashed out long before lawyers gathered in a room on the first floor of the Canyon County courthouse for the hearing. The 15-year sentence was spelled out in a plea deal that allowed Zuniga to shed felony charges of aggravated battery, use of a deadly weapon, conspiracy to traffic marijuana and unlawful possession of a firearm in exchange for admitting to a single count of conspiracy to commit robbery.

The shooting happened in March after Zuniga and other defendants targeted a 17-year-old drug dealer known to keep large amounts of cash and marijuana on hand.

According to witnesses, Zuniga's plan was to set up a fake drug buy, then flash a handgun at the teenager to intimidate him into opening his safe.

The scheme went awry when the 17-year-old rushed Zuniga as the defendant confronted him with the gun. The victim was shot during the ensuing struggle.

The teen was treated for injuries to his spine, lungs, and a rib and shoulder, and need additional surgeries in the future, prosecutors say.

The victim did not appear in court for the sentencing, and did not provide a statement to the judge. Likewise, Zuniga declined to make a statement before the sentence was handed down.

As part of the plea deal, Zuniga is waiving his right to appeal the sentence.