In earlier centuries, this was the magical cure-all. Even in orthodox medicine mugwort was believed to be an effective remedy for epilepsy.
Absinth, which has in it the amaroids from mugwort flowers, was also used to treat epilepsy.