A man who repeatedly fired a stun gun at police has been jailed for almost seven years.
Brian Mallon was spotted in the outdoor “mancave” at his former home in East Calder, West Lothian on October 4.
Police attended after the drunken 41-year-old had demanded his ex-lover let him into the house.
A judge heard how it took a police dog biting him on the bottom and a constable using his pepper spray to help get Mallon under control.
On Thursday he was sentenced to a total of six years and seven months at the High Court in Glasgow.
The ex-cleaning company owner pled guilty to using the stun gun with intent to resist arrest as well as possession of the weapon and behaving in a threatening manner.
Mallon had initially been found “under the influence” at the house on the day before the incident with police.
Paramedics took him to hospital, but he later discharged himself in the early hours.
Around 5.30am on October 4, Mallon returned to his ex-partner’s and yelled: “Open the f****** door”.
Prosecutor Michael Meehan QC said: “She ran to her bedroom and barricaded herself in.”
Five officers and a police dog arrived and a noise could be heard from an outbuilding in the garden.
The court heard Mallon had previously converted the space into a “mancave”.
He could be seen inside clutching a bottle of vodka and what appeared to be a black object.
Mr Meehan said: “Officers told Mallon to exit and show his hands.
“He failed to comply and aimed the stun gun in the direction of them.”
Mallon left the outbuilding and police tried to stop him escaping.
But he then discharged the device before going through a back gate.
Mallon continued to point the stun gun before turning back towards two of the constables.
Mr Meehan said: “He walked in their direction and (again) discharged it. He tried to move around parked vehicles in the street.”
One of the officers was forced to use his incapacitant PAVA spray before the police dog got hold of Mallon and bit him near the bottom.
Despite being restrained, Mallon still triggered the stun gun and only let go when he was hit with a baton on the hand.
Ewen Roy, defending, said Mallon was aware how “disturbing and alarming” the crimes were.
The solicitor advocate said the weapon had been left by a friend of Mallon’s during a previous visit to the “mancave”.
Sentencing, Lady Stacey said: “I must send out a signal that people cannot use stun guns on police when they are going about their business.”
Mallon will also be supervised for a further year on his release.
The judge further imposed a non-harassment order banning him from going near his ex-partner for an indefinite period.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country