DENVER (CBS4) – The man who shot and killed his wife after eating a marijuana edible will be sentenced Friday.

A deal reached with the District Attorney will get Kristine Kirk’s husband, Richard Kirk, to plead guilty to second degree murder, dropping charges related to first degree murder.

READ MORE: 'Doing Nothing Is Not An Option': New Denver International Airport CEO Phil Washington Vows To Fix Long Lines

Kristine Kirk (credit: Family of Kristine Kirk)

Richard Kirk will face between 25 and 30 years in prison as part of this plea.

It’s a deal the family is relieved to see come through because it avoids the pain a trial could bring.

READ MORE: A Look At Saint Francis Warren Residences, One Of Denver's Taxpayer-Funded Spots To Help People Transition Off The Streets

Richard Kirk (credit: Denver Police Department/CBS)

The defense tried to argue that the edible marijuana Kirk had before the shooting impaired him so that he wasn’t in the mindset to knowingly decide to kill his wife.

Prosecutors say he remembered the code to a locked gun safe and pressed the weapon to his wife’s head and fired it while she was on the phone with 911.

Kristine Kirk said on that phone call that he used marijuana and was acting erratically and had a gun.

MORE NEWS: Husband, Wife Headed To Prison After Shooting At Other Drivers In Denver Area

RELATED: Edibles Lawsuit: Manufacturer Failed To Warn Of Side Effects