A player in our group that knows much more than me explained the Help action during game, but then after the game I read the PHB and not sure if he's using it correctly.
I thought I needed to be within 5 feet of the enemy. He said I need to be within 5 feet of the ally.
The Help action says:
You can lend your aid to another creature in the completion of a task. When you take the Help action, the creature you aid gains advantage on the next ability check it makes to perform the task you are helping with, provided that it makes the check before the start of your next turn.
Alternatively, you can aid a friendly creature in attacking a creature within 5 feet of you. You feint, distract the target, or in some other way team up to make your ally’s attack more effective. If your ally attacks the target before your next turn, the first attack roll is made with advantage.
Does the ally, the enemy, or both need to be within 5 feet of me when I take the Help action?