Targeting is usually handled by the combat routine. It is more of a routine issue. I do find that my bots "sometimes" do this, but it isn't a constant thing.