Police have arrested 13 people in connection with two firearms incidents in the Holme Wood area of Bradford.
A 16-year-old male and a 24-year-old female were arrested on Wednesday 1 August on suspicion of attempted murder.
A 17-year-old male and a 20-year-old male who were arrested on Tuesday 31 July have been released under investigation.
A total of nine other people have been arrested for assisting an offender.
The arrests have been made in relation to incidents which occurred at addresses on Gillingham Green and Dulverton Grove in the early hours of Monday, which saw two men suffer leg injuries.
The man injured in the discharge at Dulverton Grove remains in hospital following treatment. The other man has since been discharged.
Detectives believe the incidents are linked and both are being treated as targeted attacks.

Fare Dodger Admits Assaulting Police Officer at London Tube Station
Aylesbury Drug Dealer Jailed for Two Years
Leeds in Running to Host 2035 FIFA Women's World Cup Matches
Bradford Hospital Staff Unite to Rescue Stray Cat Family
Richmond Council calls for West London Orbital extension
Seven jailed for helping Iranian nationals enter UK illegally
Leeds man jailed after naming false driver in speeding case
Final four men jailed for child sexual abuse in Bradford case
London SEND School Becomes First in England to Win World's Best School Prize
New and Improved Bus Services Launch Across Blackburn with Darwen
Reopening Keighley Tip Unlikely to Reduce Fly-Tipping, Council Warns
Leeds Economy Strengthens as City Targets 100,000 New Jobs
Legal Show
Remix Saturdays
The Golden Era
Alim OnAir