magarena/release/Magarena/scripts/Karmic_Guide.groovy

31 lines
1.0 KiB
Groovy
Raw Normal View History

2013-05-18 22:39:07 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-19 07:23:35 -07:00
final MagicPayedCost payedCost) {
2013-05-18 22:39:07 -07:00
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
new MagicGraveyardTargetPicker(true),
this,
"Return target creature card\$ from " +
"your graveyard to the battlefield."
);
}
2013-06-23 18:29:26 -07:00
2013-05-18 22:39:07 -07:00
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetCard(game,new MagicCardAction() {
public void doAction(final MagicCard targetCard) {
game.doAction(new MagicReanimateAction(
targetCard,
2013-07-10 05:01:39 -07:00
event.getPlayer()
2013-05-18 22:39:07 -07:00
));
}
});
}
}
]