From 2004 to 2017, 24 states enacted a stand-your-ground law allowing a person to shoot another if they perceive a threat of bodily harm.