I used to practice family law. The local judge, who presided over many divorce trials, was an active AA member himself. In my experience, the positives of attending AA meetings far outweighs the negatives. Lawyers and judges have a disproportionately high rate of alcoholism. They understand the importance of addressing alcohol issues.
I agree with the others. Talk to your lawyer. But expect him/her to tell you to do what you need to do to stay sober. Even if that means attending AA meetings.