Let's say a rogue and an ally are adjacent to an invisible enemy. The rogue would have disadvantage on the attack roll because the target is invisible, but at the same time an ally is adjacent to the target.
How does sneak attack work in this situation?
Best Answer
Sneak attack says (PHB p.96):
However, advantage and disadvantage says (PHB p.173):
So if the rogue had advantage to cancel the disadvantage (say, be being hidden) and had an ally adjacent the foe (since the disadvantage negates the advantage and vice versa) then they can sneak attack.