The characteristics of electrical discharges in magnetic fields