The B-29 aircraft that delivered the nuclear weapons at Hiroshima and Nagasaki did not lose power from electrical damage, because electrons (ejected from the air by gamma rays) are stopped quickly in normal air for bursts below roughly 10 kilometers , so they are not significantly deflected by the Earth's magnetic field.