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) {
|
|
|
|
game.doAction(new MagicReanimateAction(event.getPlayer(),card,MagicPlayCardAction.NONE));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} 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,
|
|
|
|
"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
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|