A man who sustained serious injury after being shot with a crossbow bolt in Co Tyrone has been arrested in connection with the same incident, a court heard.
It was contended that the victim and his alleged attacker are friends and the incident allegedly occurred as a result of an altercation.
Details of what happened during the early hours of April 15 emerged when a Coalisland man appeared in court by video-link accused of multiple offences.
Eamon McElkenny (29) of Maplebrook Court - the scene of the incident - is accused of unlawfully and maliciously causing grievous bodily harm; possession of an offensive weapon, namely a crossbow; possession of a firearm, namely a handgun, and possession of ammunition in suspicious circumstances.
A detective constable told Dungannon Magistrates Court all charges could be connected.
She explained police received a report that a male had been stabbed and a crossbow bolt was sticking out of his back.
On arrival officers located the victim lying on the ground, although he was conscious and able to identify the assailant as McElkenny.
The victim was taken to Craigavon Area Hospital where he underwent emergency surgery for his injuries.
While the shaft of the bolt was removed, the tip was not and remains close to the victim's pelvis.
He is due to undergo specialist surgery in the Ulster Hospital to remove this and treat another wound to his hand.
McElkenny was arrested and during interview replied "no comment" to all questions put to him.
During a search of his home, officers recovered a firearm and a shotgun cartridge, which have been seized for forensic examination.
Police have confirmed the victim was also arrested as a result of the incident.
He has been bailed while he continues to receive hospital treatment.
The detective was not opposed to McElkenny's bail providing a suitable address well away from Coalisland could be obtained.
She confirmed McElkenny and the victim had been socialising together ahead of the incident and have been friends for some time.
District Judge Eamon King decided bail could be granted but warned any address must be approved by police.
He also banned McElkenny from contact with the victim or witnesses by any means.
The case is due back in court next month.