In this title, unless the context otherwise requires, "accomplice" means a person, other than a peace officer acting in his official capacity within the scope of his authority and in the line of duty, who with the intent to promote or facilitate the commission of an offense:
A.R.S. § 13-301