Oathbow
Weapon (longbow), very rare, requires attunement · 2014 rules, SRD 5.1
Bonus action: name a sworn enemy: advantage against it, ignore cover, extra 3d6 piercing; disadvantage with other weapons until it dies (7 days).
Also in the 2024 rules (SRD 5.2).