Name:Conjurer's Closet
ManaCost:5
Types:Artifact
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ ConjurerExile | OptionalDecider$ You | TriggerDescription$ At the beginning of your end step, you may exile target creature you control, then return it to the battlefield under your control.
SVar:ConjurerExile:DB$ ChangeZone | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control to flicker | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | SubAbility$ ConjurerReturn
SVar:ConjurerReturn:DB$ ChangeZone | Defined$ Remembered | Origin$ All | Destination$ Battlefield | GainControl$ True | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
#TODO: Improve the AI to make it bounce its own locked creatures (e.g. Arrest'ed) to remove debuffs.
AI:RemoveDeck:All
SVar:Picture:http://www.wizards.com/global/images/magic/general/conjurers_closet.jpg
Oracle:At the beginning of your end step, you may exile target creature you control, then return that card to the battlefield under your control.
