Calculating hit/miss probability for melee and ranged attacks in Sp...