diff --git a/incomplete/Soul_Separator.groovy b/incomplete/Soul_Separator.groovy new file mode 100644 index 0000000000..8356b70e6f --- /dev/null +++ b/incomplete/Soul_Separator.groovy @@ -0,0 +1,58 @@ +[ + new MagicPermanentActivation( + new MagicActivationHints(MagicTiming.Token), + "Token" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicTapEvent(source), + new MagicPayManaCostEvent(source, "{5}"), + new MagicSacrificeEvent(source) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + TARGET_CREATURE_CARD_FROM_GRAVEYARD, + MagicGraveyardTargetPicker.PutOntoBattlefield, + this, + "PN exiles target creature card from his or her graveyard\$, then puts a token onto the battlefield "+ + "that's a copy of that card except it's 1/1, it's a Spirit in addition to its other types, and it has "+ + "flying. PN puts a black Zombie creature token onto the battlefield with power equal to that card's "+ + "power and toughness equal to that card's toughness." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTargetCard(game, { + final MagicCard card -> + game.doAction(new ExileLinkAction(event.getPermanent(), card, MagicLocationType.Graveyard)); + game.doAction(new PlayTokenAction( + event.getPlayer(), + MagicCardDefinition.create( + card.getCardDefinition(), + { + it.setPowerToughness(1,1); + it.addAbility(MagicAbility.Flying); + } + ), + MagicPlayMod.SPIRIT + )); + game.doAction(new PlayTokenAction( + event.getPlayer(), + MagicCardDefinition.create( + CardDefinitions.getToken("black Zombie creature token"), + { + it.setPowerToughness(card.getPower(), card.getToughness()); + } + ) + )); + }); + } + } +] diff --git a/incomplete/Soul_Separator.txt b/incomplete/Soul_Separator.txt new file mode 100644 index 0000000000..355e85a7f1 --- /dev/null +++ b/incomplete/Soul_Separator.txt @@ -0,0 +1,11 @@ +name=Soul Separator +image=http://magiccards.info/scans/en/emn/199.jpg +image_updated=2016-09-05 +value=2.500 +rarity=R +type=Artifact +cost={3} +ability={5}, {T}, Sacrifice SN: Exile target creature card from your graveyard. Put a token onto the battlefield that's a copy of that card except it's 1/1, it's a Spirit in addition to its other types, and it has flying. Put a black Zombie creature token onto the battlefield with power equal to that card's power and toughness equal to that card's toughness. +timing=artifact +oracle={5}, {T}, Sacrifice Soul Separator: Exile target creature card from your graveyard. Put a token onto the battlefield that's a copy of that card except it's 1/1, it's a Spirit in addition to its other types, and it has flying. Put a black Zombie creature token onto the battlefield with power equal to that card's power and toughness equal to that card's toughness. +requires_groovy_code