magarena/release/Magarena/scripts/Violet_Pall.groovy

28 lines
1.1 KiB
Groovy
Raw Normal View History

2013-10-12 19:07:02 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_NONBLACK_CREATURE,
new MagicDestroyTargetPicker(false),
this,
"Destroy target nonblack creature\$. " +
2013-10-13 20:03:32 -07:00
"PN puts a 1/1 black Faerie Rogue creature token with flying onto the battlefield"
2013-10-12 19:07:02 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicDestroyAction(creature));
2013-10-13 20:03:32 -07:00
game.doAction(new MagicPlayTokenAction(
2013-10-12 19:07:02 -07:00
event.getPlayer(),
2013-10-13 20:03:32 -07:00
TokenCardDefinitions.get("Faerie Rogue")
2013-10-12 19:07:02 -07:00
));
}
});
}
}
]