In a fantasy setting, the battlefield use of magic is nicely depicted in the Wheel of Time setting by Robert Jordan.
In the beginning of the series, the magic users are outside of the battlefield scene, in the sense, that they do not interfere with the direct war. Their stronghold was once...