This is how The Last Stand and the Unicron trap goes in Transformers Prime: Friendship is Magic: Beast Hunters: Predacons Rising.
Unicron: What? A familiar resonance pure energy, not unlike Primus... one I have not encountered since ancient days. The Allspark!
Bumblebee: Optimus and Twilight.
Knock Out: I never thought I'd be so happy to see that big rig and that lavender Alicorn!
Optimus Prime: We must keep the Allspark from Unicron's reach.
Wheeljack: I thought the container was indestructible.
Twilight Sparkle: Indeed. But if this vessel once trapped the Allspark, Optimus and I fear that it can also be emptied of it.
Unicron: So, the Prime and the Princess return!
Thomas: Ugh! Ugh!
Unicron: Thank you, Prime and Twilight. For delivering the Allspark so that I may erase it from existence.
Optimus Prime: Not while Twilight and I stand before you, Unicron. Megatron, you, Twilight, and I once united to save a world from Unicron. We must do so again.
Unicron: Megatron may hear you, but he cannot help you.
[in Megatron's mind, Megatron is screaming in pain]
Unicron: For he is enduring eternal suffering. Your efforts to protect Cybertron's most sacred relic are futile! My legion is within reach of Primus, your planet's very core. And we both know that the Allspark cannot thrive in a poisoned well.
[The team move on]
Knock Out: Downside to wearing metal near a Polarity Gauntlet...
Smokescreen: You're subject to the laws of magnetism.
Bumblebee: Optimus, Twilight, go! Save the Allspark!
Twilight Sparkle: I've been worse. So, how are we gonna get that thing to safety?
Optimus Prime: By the only means available to us under these most dire of circumstances. The very survival of our species upon this or any world depends upon it.
[Unicron shoots Optimus and Twilight down and takes the vessel from Optimus]
Unicron: I shall devour your Allspark whole!
[When Unicron opens up the vessel, it's empty]
Unicron: What?! A trick?!
[Unicron's energy form gets sucked into the Allspark Vessel and the Terrorcons turn to dust.]