Greg Hudson was awake for days, snorting cocaine and regularly visiting a prostitute before he was targeted and robbed, a manslaughter trial has heard.
The West Australian man was found bound and naked in his friend Simon Grezlo's Gold Coast townhouse where he'd been bingeing on a cache of cocaine in October 2014.
A Supreme Court jury on Thursday heard he had levels of cocaine in his system that were in the lethal range for someone without his heart condition.
But three people, including a prostitute, who prosecutors say conspired to rob the 57-year-old, are on trial for manslaughter after he was gagged and restrained in a violent home invasion.
Benjamin Samy Ghobrial and prostitute Milan Chante Walker have admitted to stealing from him.
But they and the third accused, Lee Benjamin Feld, deny a charge of robbing Mr Hudson in company with personal violence.
At the opening of the trial, the jury heard Mr Hudson was regularly texting Walker on the final evening he was alive, trying to arrange for sex.
Mr Grezlo said Mr Hudson had offered to pay her in cocaine.
Walker, however, had a different plan, crown prosecutor Philip McCarthy alleged.
Mr McCarthy said that in a text message exchange, Ghobrial instructed Walker to lure Mr Hudson from his bedroom.
"We're coming in five mins. F*** him hard, play music. Very important," Ghobrial allegedly texted.
Walker told police that while she was performing oral sex, two men burst in and she panicked and ran.
What happened next is unclear but the prostitute said Mr Hudson was alive when she left, the court heard.
Hours later, Mr Grezlo came home from work and discovered his back door wide open and laptop missing.
He found his friend dead in the spare room.
"I could see that Greg was naked, he was tied up and not breathing," he said.
Walker, who had fled wearing only a large t-shirt she had taken from the house, returned to collect her heels and lingerie.
She asked Mr Grezlo if "the old fella" was all right.
In the days after Mr Hudson died, "large sums" were drained from his bank account by a man in disguise who was using the correct PIN, Mr McCarthy told the jury.
That, the Crown alleges, was Ghobrial.
Central to the case is Mr Hudson's heart problems and the excessive drug use during the days before his death.
"Whilst it might be tragic, that does certainly not mean anyone is criminally responsible for such a death," Walker's defence lawyer Callan Cassidy said.
The trial continues.