Complex sentence: But the wolf and boar mistook the cat's tail for a sword, and when the cat limped they thought she was picking up rocks to throw, so they hid.
Split into simpler sentences: But the wolf and boar mistook the cat's tail for a sword. When the cat limped they thought she was picking up rocks to throw, so they hid.