Robert Asprin
Robert Lynn Asprin (1946–2008) was an American science fiction and fantasy author. He is best known for his humorous Myth Adventures series.
When the planet Zenobia is invaded, Captain Willard Phule is made their military advisor. The first priority for Phule's Company: staying out from underfoot of the peaceful, dinosaurlike Zenobians...
But, unknown to the Zenobians, they're getting two Phules for the price of one. A robot double of Captain Phule appears out of nowhere. And only the real Phule knows who the real Phule is...