Core rule
Sharpshooter
Sharpshooter removes the low-ground penalty for ranged weapon attacks and offers an accuracy-for-damage toggle.
When the toggle applies, it gives −5 to the attack roll and +10 damage. Check the current target’s hit chance instead of assuming it should always stay on.
Ranged weapon attacks, thrown attacks, and spell attacks are distinct. Attacking from a distance does not make every attack eligible.