All of the teams meet up at the haunted mansion where the portal to the Ifrit's world is. Despite Rouge only collecting six of the Emeralds, the portal opens anyway and Nega dispatches his newly copy of Metal Sonic, Metal Sonic 3.0 to awaken the Ifrit. Despite possessing the minds of Sonic, Tails, Knuckles, and Rouge (depending on who the player plays as), the Ifrit is defeated by the other teams. Shadow and Metal Sonic destroy the Ifrit and close the portal but they and Eggman Nega are trapped in the Ifrit's dimension. However, Metal Sonic tears his chassis open, revealing the 7th Chaos Emerald. Shadow uses the Emerald to teleport back with Metal Sonic. Nega is left trapped under some rubble.