Charlie Sheen

NOT a winning day in court for Charlie Sheen on Tuesday.

The TigerBlood™ enhanced warlock and ex- Two and a Half Men thesp lost his battle against his estranged wife Brooke Mueller for full custody of their two-year-old twin sons, Max and Bob.

A judge in Los Angeles just ruled that Mueller will maintain primary legal and physical custody despite a well-publicized relapse in her crack cocaine addiction.

Despite appearing "unsteady on her feet" and "glassy eyed" Mueller was all smiles as she left the court house

Mueller said "No comment" when asked if she was pleased with the judge’s decision.

A source says that while Mueller undergoes drug treatment at an undisclosed rehab facility, her socialite mother will provide primary care for the boys.