2013-05-18 18:41:02 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
|
|
|
new MagicActivationHints(MagicTiming.Draw),
|
|
|
|
"Draw"
|
|
|
|
) {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
|
|
return [new MagicTapEvent(source)];
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
this,
|
|
|
|
"PN draws a card, then discards a card."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
final MagicPlayer player = event.getPlayer();
|
2013-06-21 20:55:22 -07:00
|
|
|
game.doAction(new MagicDrawAction(player));
|
|
|
|
game.addEvent(new MagicDiscardEvent(event.getPermanent(),player));
|
2013-05-18 18:41:02 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|