Add script for Eyeblight's Ending

master
Jericho Pumpkin 2013-10-08 17:03:00 +00:00
parent 1194aee02b
commit cae14c8eb3
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,33 @@
def NON_ELF_CREATURE = new MagicPermanentFilterImpl() {
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
return target.isCreature() &&
!target.hasSubType(MagicSubType.Elf);
}
};
def TARGET_NON_ELF_CREATURE = new MagicTargetChoice(
NON_ELF_CREATURE,
MagicTargetHint.Negative,
"a non-Elf creature"
);
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
TARGET_NON_ELF_CREATURE,
new MagicDestroyTargetPicker(true),
this,
"Destroy target non-Elf creature\$."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicDestroyAction(creature));
}
});
}
}
]

View File

@ -0,0 +1,10 @@
name=Eyeblight's Ending
url=http://magiccards.info/lw/en/110.html
image=http://magiccards.info/scans/en/lw/110.jpg
value=4.074
rarity=C
cost={2}{B}
type=Tribal,Instant
subtype=Elf
timing=removal
requires_groovy_code