magarena/release/Magarena/scripts/Puppeteer_Clique.groovy

29 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-19 00:48:20 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2012-06-17 05:19:08 -07:00
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_OPPONENTS_GRAVEYARD,
new MagicGraveyardTargetPicker(true),
this,
2013-05-19 00:48:20 -07:00
"Put target creature card\$ in an opponent's graveyard onto the battlefield under your control. "+
"It has haste. At the end of your turn, exile it."
);
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) {
game.doAction(new MagicReanimateAction(
event.getPlayer(),
card,
MagicPlayCardAction.HASTE_REMOVE_AT_END_OF_YOUR_TURN
));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-19 00:48:20 -07:00
}
]