replace groovy code with card script

master
melvin 2013-10-31 20:26:46 +08:00
parent aa5eac5ba2
commit 91442cf8d2
2 changed files with 2 additions and 37 deletions

View File

@ -1,35 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Mill"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
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));
}
});
}
}
]

View File

@ -4,6 +4,6 @@ image=http://magiccards.info/scans/en/isd/245.jpg
value=3.612
rarity=R
type=Land
ability=tap add mana {1}
ability=tap add mana {1};\
pay {1}{U}{B}, {T}: Target player puts the top three cards of his or her library into his or her graveyard.
timing=land
requires_groovy_code