31 lines
1.1 KiB
Groovy
31 lines
1.1 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, {
|
|
final MagicCard targetCard ->
|
|
game.doAction(new MagicRemoveCardAction(targetCard,MagicLocationType.Graveyard));
|
|
game.doAction(new MagicMoveCardAction(
|
|
targetCard,
|
|
MagicLocationType.Graveyard,
|
|
MagicLocationType.BottomOfOwnersLibrary
|
|
));
|
|
});
|
|
}
|
|
}
|
|
]
|