ranged combat bugfixing