A person is not exempt from the criminal laws of this state for possession, delivery or manufacture of marijuana, aiding and abetting another in the possession, delivery or manufacture of marijuana, or any other criminal offense in which possession, delivery or manufacture of marijuana is an element, and the person may not assert the affirmative defense established in ORS 475C. 889, if the person, in connection with conduct constituting an element of the offense:
(1) Drives under the influence of marijuana as provided in ORS 813.010;(2) Engages in the medical use of marijuana in a public place, as defined in ORS 161.015, in public view or in a correctional facility, as defined in ORS 162.135 (2), or a youth correction facility, as defined in ORS 162.135 (6); or(3) Delivers marijuana to any individual who the person knows is not in possession of a registry identification card or to any individual or entity that the person knows has not been designated to receive marijuana or assigned a possessory interest in marijuana by an individual in possession of a registry identification card.