As soon as the King's foot landed squarely on the cat's tail, the animal transformed into a wizard, who tried to dampen the King's joy.
The animal transformed into a wizard. This was as soon as the King's foot landed squarely on the cat's tail. A wizard tried to dampen the King's joy.