Complex sentence: Shaggy and Scooby use the Tome of Doom to fight against her and after being defeated, she is revealed to be Mindi.
Split into simpler sentences: Shaggy and Scooby use the Tome of Doom to fight against her. She is defeated, and is revealed to be Mindi.