Olivia Munn is looking better than ever and, apparently, it’s all by accident. The actress is playing Psylocke in the new X-Men: Apocalypse movie and shared a before-and-after pic of her in her full superhero attire. She clearly toned up for the role and she says it was all a byproduct of her martial arts training.

SEE ALSO: The Transformation Workout Plan

“Martial arts and sword training with @karine_lmx @teambillieve was the easiest and most fun way to lose 12 lbs without even trying,” Munn said in her post. “It was never about losing weight, it was about getting fit and healthy and learning new skills.”

A solid plant-based diet doesn’t hurt either. Munn is featured in the June cover of Women’s Health where she laid out some more of her diet details. Her percentages for lean, crime-fighting success? Eighty percent fruits and vegetables and 20 percent “whatever.”