2013-05-30 05:30:08 -07:00
|
|
|
def action = {
|
|
|
|
final MagicGame game, final MagicEvent event ->
|
|
|
|
event.processTargetCard(game,new MagicCardAction() {
|
|
|
|
public void doAction(final MagicCard card) {
|
2013-07-09 05:41:40 -07:00
|
|
|
game.doAction(new MagicReanimateAction(
|
|
|
|
card,
|
2013-07-10 05:01:39 -07:00
|
|
|
event.getPlayer()
|
2013-07-09 05:41:40 -07:00
|
|
|
));
|
2013-05-30 05:30:08 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
} as MagicEventAction
|
|
|
|
|
|
|
|
def event = {
|
|
|
|
final MagicPermanent permanent ->
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.TARGET_PERMANENT_CARD_CMC_LEQ_3_FROM_GRAVEYARD,
|
|
|
|
new MagicGraveyardTargetPicker(true),
|
2013-05-30 05:38:46 -07:00
|
|
|
action,
|
2013-06-23 18:29:26 -07:00
|
|
|
"Return target permanent card\$ with converted mana cost 3 or less " +
|
2013-05-30 05:30:08 -07:00
|
|
|
"from your graveyard to the battlefield."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
2013-05-30 05:30:08 -07:00
|
|
|
return event(permanent);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
new MagicWhenAttacksTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
|
|
|
|
return (permanent==attacker) ? event(permanent) : MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|