The How I Met Your Mother star almost didn’t make it to the dance floor.

Her official diagnosis was a migraine, Hannigan told EW after her performance with partnerSasha Farber.

Hannigan got through the messy ordeal with anti-nausea and migraine meds.

DANCING WITH THE STARS

Alyson Hannigan and partner Sasha Farber on ‘Dancing With the Stars’ Motown Night.Disney/Eric McCandless

“I had to fill up all the things that were depleted,” she said.

“It’s getting very graphic.

But anyway, lots of electrolytes.”

DANCING WITH THE STARS

Alyson Hannigan and partner Sasha Farber on ‘Dancing With the Stars’ Motown Night.Disney/Eric McCandless

“And a big bucket next to her,” Farber added.

“I did,” Hannigan replied.

“I came to work with my own bucket.”

“She had two partners this week,” Farber quipped.

Hannigan added, “I did.

I had the bucket and you had to pull over four times on the way to work.

It’s pretty gross.

I didn’t even know how I’d get here, let alone dance.”

As they say, the show must go on.

Watch Hannigan’s performance below, and for more on Tuesday’s episoderead EW’s recap.

With additional reporting by Maureen Lee Lenker.