2013-06-23 02:34:29 -07:00
|
|
|
[
|
2013-06-23 02:45:21 -07:00
|
|
|
new MagicWhenYouCastSpiritOrArcaneTrigger() {
|
2013-06-23 02:34:29 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack spell) {
|
2013-06-23 02:45:21 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
new MagicMayChoice(MagicTargetChoice.NEG_TARGET_PLAYER),
|
|
|
|
spell.getConvertedCost(),
|
|
|
|
this,
|
|
|
|
"PN may\$ have target player\$ put the top RN cards of his or her library into his or her graveyard."
|
|
|
|
);
|
2013-06-23 02:34:29 -07:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
if (event.isYes()) {
|
|
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
|
|
public void doAction(final MagicPlayer player) {
|
|
|
|
game.doAction(new MagicMillLibraryAction(player, event.getRefInt()));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
}
|
2013-06-23 02:34:29 -07:00
|
|
|
}
|
|
|
|
]
|