magarena/release/Magarena/scripts/Zombie_Infestation.groovy

29 lines
893 B
Groovy
Raw Normal View History

2013-05-18 19:35:12 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Token,true),
"Token"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-18 19:35:12 -07:00
return [
new MagicDiscardEvent(source,2)
2013-05-18 19:35:12 -07:00
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN puts a 2/2 black Zombie creature token onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Zombie")
));
}
}
]