Add script for Elvish Promenade

master
Jericho Pumpkin 2013-10-06 12:03:05 +00:00
parent ded01ea070
commit 79e1fb69e8
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,22 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN puts a 1/1 green Elf Warrior creature tokens onto the battlefield " +
"for each Elf creature he controls."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final int amount = event.getPlayer().getNrOfPermanents(MagicSubType.Elf);
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Elf1"),
amount
));
}
}
]

View File

@ -0,0 +1,10 @@
name=Elvish Promenade
url=http://magiccards.info/dpa/en/62.html
image=http://magiccards.info/scans/en/dpa/62.jpg
value=4.070
rarity=U
type=Tribal,Sorcery
subtype=Elf
cost={3}{G}
timing=main
requires_groovy_code