Vanilla Protection From Lightning

Protection From Lightning
(Abjuration)

Level: 4
Sphere: Protection, Weather
Range: Touch
Duration: 5 rounds/level
Casting Time: 7
Area of Effect: 1 creature
Saving Throw: None

When the spell is cast, it confers complete invulnerability to electrical attacks such as Lightning Bolt, Shocking Grasp, and so on. The protection will last for the duration of the spell or until successfully dispelled.