Unseen Attackers and Targets

Appendix D: Rule References / Rule

Unseen Attackers and Targets

When you make an attack roll against a target you can't see, you have Disadvantage on the roll. This is true whether you're guessing the target's location or targeting a creature you can hear but not see. If the target isn't in the location you targeted, you miss.
When a creature can't see you, you have Advantage on attack rolls against it.
If you are hidden when you make an attack roll, you give away your location when the attack hits or misses.