Florida police officers can use the state’s “stand your ground” law as a defense, the Florida Supreme Court ruled on Thursday.

The 2005 statute offers immunity from prosecution if the shooting was an act of self-defense.