Eldritch Barrier

The horrors beyond can be defied, if one's soul is strong.
When you cast this spell, you shield yourself from unnatural energies. You gain advantage on saving throws against the frightened and charmed conditions. You gain resistance to force damage and psychic damage, and whenever you take damage from an attack that deals force or psychic damage, you can use your reaction to inflict 1d8 force damage to your attacker.

At Higher Levels: When you cast this spell using a spell slot of 4th level or higher, the retaliatory force damage increases by 1d8 per spell slot level above 3rd.