Close Counter (5e Feat)
From D&D Wiki
Prerequisites: Proficiency with a ranged weapon
You have learned how to be effective while using a ranged weapon against a melee opponent. You gain the following benefits:
- Being within 5 feet of a hostile creature doesn’t impose disadvantage on your ranged attack rolls.
- When creature makes a melee weapon attack against you, you may use your reaction to make a ranged weapon attack against that creature.