ezio had hoped to take the mansion by surprise , before its occupants were aware of his attack , but when he came close to the solid main gates a figure appeared on the walls above them , dressed in the robes of an archbishop , gripping the battlements with claw-like hands .