PART II - GENERAL PRINCIPLES OF CRIMINAL LIABILITY
Automatism
9. (1) A person who acts in a state of unconsciousness, or whose consciousness is so impaired as to make him or her unable to control his or her actions, shall not be liable for any offence committed during such a state.
2) This defence shall not be available to any person who, knowing
of the existence of the condition which gives rise to such conduct, nonetheless recklessly places himself or herself in circumstances where she or he is likely to cause harm to persons or property.
EDIT.