(1) Subject to subsection (2) an attorney-at-law shall not enjoy immunity from action for any loss or damage caused by his or her negligence or lack of skill in the performance of his or her functions.
(2) An attorney-at-law is immune from suit in negligence in respect of his or her conduct of litigation only.
(3) The immunity referred to in subsection (2) is not confined to proceedings in court but extends to such pre-trial work as is so intimately connected with the conduct of the case in court that it could be said to be a preliminary decision affecting the way the case is to be conducted at the hearing.
(4) In this section “function” means a function undertaken by an attorney-at-law in relation to the conduct or management of litigation or prospective litigation, whether performed in or out of court or before, during or after any court proceedings.