Boon of Masterful Parry (5e Epic Boon)
From D&D Wiki
Boon of Masterful Parry
Any ability you are capable of using that decreases the damage of and/or deflects a ranged attack now also applies to melee attacks against you. If the damage is decreased to zero, instead of sending the attack back at the attacker, you may make one melee attack against the attacker.