Fixed not attacking when targeting dead mobs.