(A) A person is justified in the use of force against when and to the extent that he or she reasonably believes that the conduct is necessary to prevent or terminate such other’s unlawful entry into or attack upon a dwelling.
However, he or she is justified in the use of force which is intended or likely to cause death or great bodily harm only if:
(1) The entry is made or attempted in a violent, riotous or tumultuous manner and he or she reasonably believes that the force is necessary to prevent an assault upon, or offer of personal violence to him or her or another in the dwelling; or
(2) He or she reasonably believes that the force is necessary to prevent the commission of a felony in the dwelling.
(B) In no case shall any act involving the use of force justified under this section give rise to any claim or liability brought by or on behalf of any person acting within the definition of "aggressor" set forth in ILCS Chapter 720, Act 5, § 7-4, or the estate, spouse, or other family member of such a person, against the person or estate of the person using such justified force, unless the use of force involves willful or wanton misconduct.
(ILCS Chapter 720, Act 5, § 7-2) (1981 Code, § 42.07, 7-2)