magarena/release/Magarena/scripts/Alchemist_s_Apprentice.groovy

25 lines
724 B
Groovy
Raw Normal View History

2013-05-17 22:14:15 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Draw),
"Draw"
2013-06-15 03:02:45 -07:00
) {
2013-05-17 22:14:15 -07:00
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-17 22:14:15 -07:00
return [new MagicSacrificeEvent(source)];
}
@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-17 22:14:15 -07:00
}
}
]