Bot attack fix

Fixes #4967

Bots were only doing a simple distance check when trying to arrest/baton/inject mobs and were subsequently able to attack targets through windows.
Changed the distance check to an Adjacent check to check if they can actually reach their target.