This is a very nice idea, but a lightning bolt is much more complicated than just electricity flowing from a cloud to the ground, see Wikipedia.
Before the lightning strikes, so called leaders emerge from the cloud create an ion channel. Only once these leaders touch the ground, the electric discharge takes place and electrons flow. These electrons can only flow through the ion channels created in the first place. It is not possible to alter their trajectory with magnetic fields.
It might be possible to influence the direction of the leaders with magnets, but keep in mind, that the leaders branch, and the first leader to touch the ground "wins". Thus, it will not be possible to force the lightning into a long straight line and a "lightning projectile" will not be possible either.