32 lines
1.2 KiB
Groovy
32 lines
1.2 KiB
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
MagicTargetChoice.NEG_TARGET_CARD_FROM_ALL_GRAVEYARDS,
|
|
MagicGraveyardTargetPicker.ExileOpp,
|
|
this,
|
|
"Put target card\$ from a graveyard " +
|
|
"on the bottom of its owner's library."
|
|
);
|
|
}
|
|
@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.BottomOfOwnersLibrary
|
|
));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|