Just wait for the AI to attack, Dodge than tap attack. It usually works fairly well without any problems.