Add script for Miraculous Recovery

master
ember hauler 2013-10-15 17:17:29 +00:00
parent 57311bfa9d
commit 131c47b7fc
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,32 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
MagicGraveyardTargetPicker.PutOntoBattlefield,
this,
"Return target creature card\$ from your graveyard to the battlefield. Put a +1/+1 counter on it."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetCard(game,new MagicCardAction() {
public void doAction(final MagicCard targetCard) {
game.doAction(new MagicRemoveCardAction(targetCard,MagicLocationType.Graveyard));
final MagicPlayCardAction action = new MagicPlayCardAction(targetCard,event.getPlayer());
game.doAction(action);
final MagicPermanent permanent = action.getPermanent();
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.PlusOne,
1,
true
));
}
});
}
}
]

View File

@ -0,0 +1,9 @@
name=Miraculous Recovery
url=http://magiccards.info/ddl/en/30.html
image=http://magiccards.info/scans/en/ddl/30.jpg
value=4.733
rarity=U
type=Instant
cost={4}{W}
timing=removal
requires_groovy_code