move Jace's Archivist to scripts

master
melvin 2014-09-02 11:44:07 +08:00
parent 642b0dcdb9
commit 3f10f4b156
3 changed files with 4 additions and 15 deletions

View File

@ -1,12 +1,13 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
new MagicActivationHints(MagicTiming.Draw),
"Discard"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source), new MagicPayManaCostEvent(source, "{U}")
new MagicPayManaCostEvent(source, "{U}"),
new MagicTapEvent(source)
];
}
@ -23,11 +24,10 @@
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer cardPlayer = event.getPlayer();
final int drawAmount = Math.max(cardPlayer.getHandSize(),cardPlayer.getOpponent().getHandSize());
for (final MagicPlayer player : game.getPlayers()) {
for (final MagicPlayer player : game.getAPNAP()) {
game.addEvent(new MagicDiscardEvent(event.getSource(),player,player.getHandSize()));
game.addEvent(new MagicDrawEvent(event.getSource(),player,drawAmount));
}
}
}
]
//Discarding and drawing should be simultaneous between players. Should end in a draw if both players would draw into empty libraries.

View File

@ -1,11 +0,0 @@
name=Jace's Archivist
image=http://mtgimage.com/card/jace%27s%20archivist.jpg
value=2.500
rarity=R
type=Creature
subtype=Vedalken,Wizard
cost={1}{U}{U}
pt=2/2
ability={U}, {T}: Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.
timing=main
oracle={U}, {T}: Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.