Metro

A streak of luck for this hole-y man

Now he’s actually dodged a bullet.

The man who survived 21 police gunshots in last week’s deadly Harlem cop shootout hobbled on bandaged feet into court yesterday — and learned that he had been charged with gun possession, but not the more serious charge of attempted murder of a police officer.

Angel Alvarez, 23, remains held without bail as prosecutors and cops continue investigating the Aug. 8 shooting at a Lenox Avenue block party crowded with 200 people.

“He didn’t shoot the cop,” his lawyer, Matthew Galluzzo, said in court, insisting that witnesses would back Alvarez’s claim of innocence.

Some of the 21 bullets that struck Alvarez came from the gun of his rival at the party — Luis Soto, who was shot dead by police, the lawyer said.

If Alvarez had indeed grabbed for Soto’s .38-caliber revolver, it was “a justifiable self-defense,” the lawyer told a Manhattan Criminal Court judge in asking for his client’s release.

“The only reason this gun may have ended up in Mr. Alvarez’s possession is because he wrestled it away from Mr. Soto himself,” he said.

In fact, Alvarez is the victim, the lawyer added outside court.

“I think the shooting itself was wrongful. They shot him way too many times,” Galluzzo said.

“The man has holes all over him.”

In asking that no bail be set, prosecutor Jon Veiga noted that Alvarez was a violent predicate felon whom cops once overheard telling a fellow inmate, “I want to get those armor-piercing bullets that go through vests.”

A search warrant at Alvarez’s home turned up 30 Ziploc baggies containing white residue and a shoebox holding $87,000 cash. Soto had 25 small bags of marijuana in his Bronx apartment, police said.

Alvarez had originally been charged by cops with trying to kill two officers who suffered minor gunshot wounds. One of those cops was saved by his vest from a bullet to the chest — a bullet prosecutors now say was fired by a fellow officer.

Even without the attempted-murder charge, Alvarez faces a mandatory minimum of seven years and as much as 15 years’ prison if convicted on the weapons rap. He returns to court Aug. 19.

The evidence linking Alvarez to the gun — a Charter Arms five-shot revolver that originated in Georgia — is strong, the prosecutor noted.

Alvarez’s DNA was on the grip and cylinder release — along with Soto’s DNA, the prosecutor said. Blood on the gun also matched Alvarez, he said.

laura.italiano@nypost.com