[RPG] Does the kobold player race feature, Pack Tactics, give ranged attacks advantage

advantage-and-disadvantagednd-5ekoboldracial-traitsranged-attack

On page 119 of VGtM, the description of the Kobold playable race's trait, Pack Tactics, reads:

Pack Tactics. You have advantage on an attack roll against a creature if at least one of your allies is within 5 feet of the creature and the ally isn't incapacitated.

It doesn't specify whether your attack has to be melee or that the ally must be within 5 feet of your PC.

Does the kobold player race feature, Pack Tactics, give ranged spell and weapon attacks advantage?

Best Answer

Your reasoning is correct

Indeed, Pack Tactics only requires that you have an ally within 5 feet of the target so this would work with any attack, including ranged spell or weapon attacks.

If the feature only worked for melee attacks it would say so, but it doesn't, so any attack works.