THE PENAL CODE, 1860 (ACT NO. XLV OF 1860).
CHAPTER IV- GENERAL EXCEPTIONS
88. Nothing, which is not intended to cause death, is an offence by reason of any harm which it may cause, or be intended by the doer to cause, or be known by the doer to be likely to cause, to any person for whose benefit it is done in good faith, and who has given a consent, whether express or implied, to suffer that harm, or to take the risk of that harm.
Mental element
Intent - national proceedings
Knowledge - national proceedings
EDIT.