magarena/release/Magarena/scripts/Arcbound_Reclaimer.groovy

37 lines
1.4 KiB
Groovy
Raw Normal View History

2013-05-28 00:59:11 -07:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-04-12 19:32:25 -07:00
new MagicActivationHints(MagicTiming.Main),
"Card"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-28 00:59:11 -07:00
return [
2013-04-12 19:32:25 -07:00
new MagicRemoveCounterEvent(source,MagicCounterType.PlusOne,1)
2013-05-28 00:59:11 -07:00
];
2013-04-12 19:32:25 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.TARGET_ARTIFACT_CARD_FROM_GRAVEYARD,
new MagicGraveyardTargetPicker(false),
this,
2013-05-28 00:59:11 -07:00
"Put target artifact card\$ from your graveyard on top of your library"
2013-04-12 19:32:25 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetCard(game,new MagicCardAction() {
public void doAction(final MagicCard targetCard) {
game.doAction(new MagicRemoveCardAction(targetCard,MagicLocationType.Graveyard));
game.doAction(new MagicMoveCardAction(
targetCard,
MagicLocationType.Graveyard,
MagicLocationType.TopOfOwnersLibrary
));
}
});
}
2013-05-28 00:59:11 -07:00
}
]