magarena/release/Magarena/scripts/Grim_Backwoods.groovy

35 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-27 00:00:33 -07:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-05-27 00:00:33 -07:00
[
2013-06-14 20:11:35 -07:00
//add ONE for the card itself
2013-06-23 18:29:26 -07:00
MagicConditionFactory.ManaCost("{3}{B}{G}"),
2013-05-27 00:00:33 -07:00
],
new MagicActivationHints(MagicTiming.Draw),
"Draw"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-27 00:00:33 -07:00
return [
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{2}{B}{G}"),
new MagicSacrificePermanentEvent(
source,
MagicTargetChoice.SACRIFICE_CREATURE
)
];
}
@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-27 00:00:33 -07:00
}
}
]