magarena/release/Magarena/scripts/Debtors__Knell.groovy

26 lines
1.0 KiB
Groovy
Raw Normal View History

2013-05-18 18:43:06 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
2011-08-14 00:57:54 -07:00
new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_ALL_GRAVEYARDS,
new MagicGraveyardTargetPicker(true),
this,
2013-05-18 18:43:06 -07:00
"Put target creature card\$ in a graveyard onto the battlefield under your control."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
2013-03-22 22:00:53 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetCard(game,new MagicCardAction() {
public void doAction(final MagicCard card) {
2012-08-30 06:04:05 -07:00
game.doAction(new MagicReanimateAction(event.getPlayer(),card,MagicPlayCardAction.NONE));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-18 18:43:06 -07:00
}
]