Complex sentence: Squirrelpaw checks out the medicine cat's den but is attacked by Cinderpelt, who had mistaken her for an enemy warrior, trying to steal her herbs.
Split into simpler sentences: Squirrelpaw checks out the medicine cat's den, but is attacked by Cinderpelt. The medicine cat had mistaken her for an enemy warrior, trying to steal her herbs.