I believe when you do ranged spells that require a dice roll, you use: Wis/Cha/Int (depending on class) + Proficiency + other bonuses (like magical stuff) Similar to weapons. When you calc DC for saving throws against your spells, I think its 8 + wis/int/cha + proficiency