Fixed the is_illegal_ranged_attack check for players.