When you are the target of a spell you can instead attempt to make it effect a different target instead. Make a WIS ability check against the casters spell save, if you are successful you can select a different target for the spell to effect. The new target must make any saving throw if needed by the spell, and the spells attack must be high enough to pass their AC if targeted.