Right, in most places the law is that if anyone is shot during an armed robbery, it's on the robbers, not anyone else. That's because the law reasons that the decision to engage in a crime where it's highly likely that someone will be seriously injured or killed is the cause of all reactions to said crime (because such reaction is predictable), including return fire from intended victims. If return fire injures an innocent third party, it's felony murder on the part of the armed robbers. The defender isn't charged with anything. The same rule should apply with any charge, to include reckless endangerment.