magarena/release/Magarena/scripts/Nephalia_Drownyard.groovy

40 lines
1.2 KiB
Groovy
Raw Normal View History

2013-05-27 02:48:40 -07:00
[
new MagicPermanentActivation(
[
2013-06-14 20:31:35 -07:00
//add ONE for the card itself
2013-06-23 18:29:26 -07:00
MagicConditionFactory.ManaCost("{2}{U}{B}"),
2013-05-27 02:48:40 -07:00
],
new MagicActivationHints(MagicTiming.Pump),
2013-08-06 06:02:57 -07:00
"Mill"
2013-05-27 02:48:40 -07:00
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-27 02:48:40 -07:00
return [
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{1}{U}{B}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.TARGET_PLAYER,
this,
"Target player\$ puts the top three cards of " +
"his or her library into his or her graveyard."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer player) {
game.doAction(new MagicMillLibraryAction(player,3));
}
});
}
}
]