Add script for Eyeblight's Ending
parent
1194aee02b
commit
cae14c8eb3
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue