You will have a disadvantage on your attack rolls if you attack further than the longbow’s normal range of 150 ft. Furthermore, you also gain a disadvantage when you make a ranged attack while a hostile creature who isn’t incapacitated and can see you is within 5 ft. from you.