A man has been jailed for attempted murder after shooting a corpse twice.

In what has been described as a case with "an air of unreality", a man has been sentenced to eight years by an Australian supreme court for shooting a man believed already to be dead after a gun accidentally went off.

Daniel James Darrington was fighting over the gun with Rocky Matskassy in a house when it went off, reportedly killing Mr Matskassy in the struggle, according to The Australian.

As the man lay there, Darrington is then believed to have fired a second and third shot into the 31-year-old. He said he thought Mr Matskassy was just about alive and so shot him out of pity.

The defendant from Melbourne was found guilty not of murder, because his target was already dead, but of attempted murder because he crucially believed his target still to be alive and yet still chose to shoot him.

The crown and defence said at a plea hearing last year that they could not think of another case like it.

Rocky Matskassy, who was in a fight with Daniel Darrington before the latter shot him (Facebook)

In his own defence, Darrington told a psychologist he thought Mr Matskassy was on the edge of death and he had shot him to put him out of his misery.

"I was like a robot," the 39-year-old said according to The Australian.

"He was twitching, I felt sorry for him. So I shot him, twice. I wish it had never happened."

Yet the judge said the jury could not be sure beyond reasonable doubt that Mr Matskassy had been alive when he shot him, and that the second and third bullets showed a determination on Darrington's part to ensure Mr Matskassy was dead. This intent meant the charge was upgraded from manslaughter.

The pair had begun arguing and then physically fighting while at an associate's house in a suburb of Melbourne in March 2014.

The famous for and against US gun control Show all 31 1 /31 The famous for and against US gun control The famous for and against US gun control Against: Robert De Niro Despite the actor being a gun-wielding fast-talker, he told Daily Mail: "There should be more control. It has just gotten out of hand, how easily you can get guns." The famous for and against US gun control For: Brad Pitt "America is founded on guns. It;s in out DNA. It’s very strange but I feel better having a gun." Getty Images The famous for and against US gun control For: Angelina Jolie "Brad and I are not against having a gun in the house, and we do have one. If anybody comes into my home and tries to hurt my kids, I’ve no problem shooting them." AFP/Getty The famous for and against US gun control For: Johnny Depp "When I was a kid it was a controlled atmosphere, we weren't shooting at humans - we were shooting at cans and bottles mostly. I will most certainly take my kids out for target practice." Getty Images The famous for and against US gun control For: Bruce Willis "Everyone has a right to bear arms. If you take guns away from legal gun owners, then the only people who have guns are the bad guys." Getty Images The famous for and against US gun control For: Clint Eastwood "I have a very strict gun control policy: if there's a gun around, I want to be in control of it." Reuters The famous for and against US gun control For: Whoopi Goldberg "I’m an NRA member, as you know or probably don’t know... I want to know that there’s at least some way to prevent folks who are just getting out from mental institutions [from getting guns]." The famous for and against US gun control For: Vince Vaughn "Banning guns is like banning forks in an attempt to stop making people fat. Taking away guns, taking away drugs, the booze, it won't rid the world of criminality... I support people having a gun in public full stop, not just in your home." Getty Images The famous for and against US gun control For: Donald Trump "Democrats want to confiscate all guns, which is a dumb idea because only the law-abiding citizens would turn in their guns and the bad guys would be the only ones left armed. The Republicans walk the NRA line and refuse even limited restrictions" Getty The famous for and against US gun control Against: Matt Damon “I actually hate guns. They freak me out.” Rex The famous for and against US gun control Against: Mark Wahlberg "Well, I would love it if they could take all the guns away. Unfortunately, you can’t do that so you hope that good people in the world have them to protect the people who can’t protect themselves." AP The famous for and against US gun control Against: Sean Connery "It is said that a total ban on handguns, including .22s, would take away innocent pleasure from thousands of people. Is that more or less pleasure than watching your child grow up?" Rex Features The famous for and against US gun control Against: Arnold Schwarzenegger "I’m for gun control. I’m a peace-loving guy." Lionsgate The famous for and against US gun control Against: Sylvester Stallone "Until America, door to door, takes every handgun, this is what you’re gonna have. It’s pathetic. It really is pathetic. It’s sad. We’re living in the Dark Ages over there." Getty Images The famous for and against US gun control Against: Rashida Jones "Gun control is our only road to freedom. Freedom from the fear of senselessly losing children." Getty The famous for and against US gun control Against: Susan Sarandon "How much more suffering & loss will it take before we better regulate the sale of arms in our country?" Getty The famous for and against US gun control Against: Beyonce Queen B was part of the Demand a Plan campaign against guns after Newton shooting, by appearing in a video alongside a bunch of celebrities. AP The famous for and against US gun control Against: Jamie Foxx A Hollywood gang joined Beyonce in the campaign... GETTY IMAGES The famous for and against US gun control Against: Cameron Diaz Took part in the Demand a Plan campaign. Getty Images The famous for and against US gun control Against: Jessica Alba Took part in the Demand a Plan campaign. Getty Images The famous for and against US gun control Against: Jennifer Garner Took part in the Demand a Plan campaign. Getty Images The famous for and against US gun control Against: Jennifer Aniston Took part in the Demand a Plan campaign. Jason Merritt | Getty Images The famous for and against US gun control Against: Jon Hamm The Mad Men actor also appeared in the video... The famous for and against US gun control Against: Reese Witherspoon Took part in the Demand a Plan campaign. Getty Images The famous for and against US gun control Against: Ellen DeGeneres Took part in the Demand a Plan campaign. Reuters The famous for and against US gun control Against: Julianne Moore Took part in the Demand a Plan campaign. The famous for and against US gun control Against: Selena Gomez Took part in the Demand a Plan campaign. GETTY IMAGES The famous for and against US gun control Against: Peter Dinklage The Game of Thrones also appeared in the video... Getty Images The famous for and against US gun control Against: Zooey Deschanel alongside the New Girl star. Getty Images The famous for and against US gun control Against: Steve Carell Took part in the Demand a Plan campaign. Getty Images The famous for and against US gun control Against: Gwyneth Paltrow Took part in the Demand a Plan campaign, too.

Darrington's defence said he told a bloodied Mr Matskassy to go and clean himself up in the bathroom and that when the man returned he was holding a gun. After a struggle, Mr Matskassy was accidentally shot.

The trial heard that it could not know for certain who first brought the gun out, nor whether Mr Matskassy was killed by the accidental shot or by Darrington's second and third shot.

Saying he accepted the difficulty of sentencing in such a case, Justice Coughlan jailed Darrington for eight years for attempted murder, with a non-parole period of five years.

"There is an air of unreality about the case," he said.

Australia is believed to have some of the most comprehensive gun laws in the world, following extensive reform in response to the Port Arthur shootings of 1996.

All six Australian states banned semi-automatic rifles and shot guns, and made it more difficult for prospective gun owners to obtain a licence.