Studies have shown that pyramidal neurons are significant in regulating seizures. Based on this, we employ a modified corticothalamic model to investigate the effect of magnetic flow on seizures by adding magnetic flow to pyramidal neurons. We first separately explore the effect of the excitatory projection (C EIN −P Y ) from the excitatory interneurons (EIN) to the pyramidal neuronal population (PY), the inhibitory projection (C IN −P Y ) from the inhibitory interneurons (IN) to PY, and the excitatory projection (C T C−P Y ) from the thalamic relay nucleus (TC) to PY on the epilepsy under electromagnetic induction. The findings indicate that the strong electromagnetic induction facilitates the elimination of seizures induced by pathways EIN-PY and IN-PY. However, for the seizures caused by pathway TC-PY, the electromagnetic induction triggers the system to shift from clonic seizures to spike and wave discharges (SWDs), meanwhile widens the spectrum of seizure manifestations. This further demonstrates that electromagnetic radiation has two sides. Furthermore, we use bifurcation analysis to obtain the dynamical mechanisms behind the transitions of discharge states, including fold limit cycle bifurcations, subcritical and supercritical Hopf bifurcations. It may provide insights into the significance of electromagnetic induction in the treatment of epilepsy.