Fixes in attack range checking