magarena/release/Magarena/scripts/Mad_Prophet.groovy

30 lines
797 B
Groovy
Raw Normal View History

2013-05-18 19:42:49 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Draw),
"Draw"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-18 19:42:49 -07:00
return [
new MagicTapEvent(source),
new MagicDiscardEvent(source)
2013-05-18 19:42:49 -07:00
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN draws a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer()));
2013-05-18 19:42:49 -07:00
}
}
]