Who was the first warrior to become imperial advisor