Name:Arcane Artisan
ManaCost:2 U
Types:Creature Human Wizard
PT:0/3
A:AB$ Draw | Cost$ 2 U T | ValidTgts$ Player | TgtPrompt$ Select target player | SubAbility$ DBExile | SpellDescription$ Target player draws a card, then exiles a card from their hand. If a creature card is exiled this way, that player creates a token that's a copy of that card.
SVar:DBExile:DB$ ChangeZone | Origin$ Hand | Destination$ Exile | ChangeType$ Card | Mandatory$ True | Imprint$ True | DefinedPlayer$ Targeted | SubAbility$ DBToken
SVar:DBToken:DB$ CopyPermanent | Defined$ Imprinted | Controller$ Targeted | ConditionDefined$ Imprinted | ConditionPresent$ Creature | RememberTokens$ True | SubAbility$ ClearImprinted | StackDescription$ If a creature card is exiled this way, {p:Targeted} creates a token that's a copy of that card.
SVar:ClearImprinted:DB$ Cleanup | ClearImprinted$ True
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ DelTrigLeaves | TriggerDescription$ When CARDNAME leaves the battlefield, exile all tokens created with it at the beginning of the next end step.
SVar:DelTrigLeaves:DB$ DelayedTrigger | RememberObjects$ Remembered | Mode$ Phase | Phase$ End of Turn | Execute$ TrigExileAll | SubAbility$ DBCleanup | TriggerDescription$ Exile all tokens created with CARDNAME.
SVar:TrigExileAll:DB$ ChangeZone | Defined$ DelayTriggerRememberedLKI | Origin$ Battlefield | Destination$ Exile
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:{2}{U}, {T}: Target player draws a card, then exiles a card from their hand. If a creature card is exiled this way, that player creates a token that's a copy of that card.\nWhen Arcane Artisan leaves the battlefield, exile all tokens created with it at the beginning of the next end step.
