magarena/incomplete/Snap.groovy

26 lines
863 B
Groovy
Raw Normal View History

2015-04-01 13:14:04 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
TARGET_CREATURE,
2015-04-01 13:14:04 -07:00
this,
"Return target creature\$ to its owner's hand. Untap up to two lands."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game, {
game.doAction(new RemoveFromPlayAction(it,MagicLocationType.OwnersHand));
2015-04-01 13:14:04 -07:00
});
game.addEvent(new MagicRepeatedPermanentsEvent(
event.getSource(),
TARGET_LAND,
2015-04-01 13:14:04 -07:00
2,
MagicChainEventFactory.Untap
));
}
}
]