It is an affirmative defense to a violation of a municipal ordinance that prohibits, regulates, or restricts the private ownership of firearms if the individual who is charged with the violation used the firearm in an act of self-defense or defense of another as defined in Sections 7-1 and 7-2 of this Code when on his or her land or in his or her abode or fixed place of business.
720 ILCS 5/24-10