37 lines
1.3 KiB
Groovy
37 lines
1.3 KiB
Groovy
|
def DiscardTwo = {
|
||
|
final MagicGame game, final MagicEvent event ->
|
||
|
event.processChosenCards(game, {
|
||
|
final MagicCard card ->
|
||
|
game.doAction(new MagicRemoveCardAction(card,MagicLocationType.OwnersHand));
|
||
|
game.doAction(new MagicMoveCardAction(card,MagicLocationType.OwnersHand,MagicLocationType.TopOfOwnersLibrary));
|
||
|
});
|
||
|
};
|
||
|
|
||
|
|
||
|
[
|
||
|
new MagicSpellCardEvent() {
|
||
|
@Override
|
||
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
cardOnStack,
|
||
|
MagicTargetChoice.NEG_TARGET_PLAYER,
|
||
|
this,
|
||
|
"PN looks at target player's\$ hand and chooses two cards from it. PN puts them on top of that player's library in any order."
|
||
|
);
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
event.processTargetPlayer(game, {
|
||
|
final MagicPlayer player ->
|
||
|
game.addEvent(new MagicEvent(
|
||
|
event.getSource(),
|
||
|
new MagicFromCardListChoice(player.getHand(),2),
|
||
|
player,
|
||
|
DiscardTwo,
|
||
|
"\$"
|
||
|
));
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]
|