add Soul Separator to incomplete #884

master
ShawnieBoy 2016-09-23 16:34:35 +01:00
parent b2ecee64bd
commit 3c594ea162
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,58 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Token),
"Token"
) {
@Override
public Iterable<? extends MagicEvent> 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());
}
)
));
});
}
}
]

View File

@ -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