Magical lightning (or perhaps high-tech particle beams that mimic lightning) doesn't necessarily care about such issues. Dump enough energy into any projectile and it'll be knocked off course or vaporized. Particle beams travel at nearly the speed of light, so it's theoretically viable in that sense. It would require impressive reflexes for the dragon, however, unless it just generates some sort of electrical field that fries everything in a certain area.