Good thing Sasuke told Omoi about Deidara's lightning weakness.
Good thing Kakashi already fought Deidara and also happens to own the Sharingan and also happens to be a smart motherfucker. Or that Kabuto gave them a book with information on Akatsuki.