You attempt to magically reflect incoming damage back at the creature that harmed you. You only take half as much damage from the triggering spell, and the spell also targets the caster, using the spell level, spell save DC, Attack bonus, and spellcasting attribute of the caster. If the spell would hit the caster, or if it fails its saving throw, the caster only takes damage from the spell, and suffers no other effects.