Lightning Shield

4th-level Evocation
Casting Time: 1 action
Range: 30 feet
Components: VSM (a copper rod)
Duration: (C) 1 minute

You a circle of ball lightning surrounds the target for the duration, which swirl around them and protect them from assailants. These orbs shed bright light in a 10-foot radius and dim light for an additional 10 feet. When the shield appears, each creature within 5 feet of the target must make a Dexterity saving throw. On a failed save, a creature takes 4d10 lightning damage, or half as much damage on a successful save.
A creature takes 4d10 lightning damage when it moves within 5 feet of the shielded target for the first time on a turn or ends its turn there.
At Higher Levels. When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d10 for each slot level above 4th.

Source: Homebrew