Add script for Miraculous Recovery
parent
57311bfa9d
commit
131c47b7fc
|
@ -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
|
||||
));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue