Name:The Pandorica
ManaCost:2 W
Types:Legendary Artifact
K:You may choose not to untap CARDNAME during your untap step.
A:AB$ Untap | Cost$ 1 W T | ValidTgts$ Permanent.Other+nonLand | TgtPrompt$ Select another target nonland permanent | SorcerySpeed$ True | SubAbility$ DBPhase | StackDescription$ Untap {c:Targeted}, | SpellDescription$ Untap another target nonland permanent,
SVar:DBPhase:DB$ Phases | Defined$ Targeted | SubAbility$ DBEffect | StackDescription$ SpellDescription | SpellDescription$ then it phases out.
SVar:DBEffect:DB$ Effect | Triggers$ TrigUntaps,TrigChangesZone | StaticAbilities$ CantPhaseIn | RememberObjects$ Targeted | Duration$ Permanent | ForgetOnPhasedIn$ True | SpellDescription$ It can't phase in for as long as CARDNAME remains tapped. When CARDNAME becomes untapped or leaves the battlefield, that permanent phases in. Activate only as a sorcery.
SVar:CantPhaseIn:Mode$ CantPhaseIn | ValidCard$ Card.phasedOutIsRemembered | IsPresent$ Card.EffectSource+tapped | Description$ That permanent can't phase in for as long as EFFECTSOURCE remains tapped. When EFFECTSOURCE becomes untapped or leaves the battlefield, that permanent phases in.
SVar:TrigUntaps:Mode$ Untaps | ValidCard$ Card.EffectSource | Execute$ DBPhaseIn | TriggerZones$ Command | TriggerController$ TriggeredCardController | Secondary$ True | TriggerDescription$ When EFFECTSOURCE becomes untapped or leaves the battlefield, that permanent phases in.
SVar:TrigChangesZone:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.EffectSource | Execute$ DBPhaseIn | TriggerZones$ Command | TriggerController$ TriggeredCardController | Secondary$ True | TriggerDescription$ When EFFECTSOURCE becomes untapped or leaves the battlefield, that permanent phases in.
SVar:DBPhaseIn:DB$ Phases | Defined$ Remembered | PhaseInOrOut$ True
Oracle:You may choose not to untap The Pandorica during your untap step.\n{1}{W}, {T}: Untap another target nonland permanent, then it phases out. It can't phase in for as long as The Pandorica remains tapped. When The Pandorica becomes untapped or leaves the battlefield, that permanent phases in. Activate only as a sorcery.
