get_ab now consider dex for ranged weapons