Add script for Culling Sun

master
Jericho Pumpkin 2013-11-15 19:15:04 +00:00
parent b16d40f505
commit d2c671423a
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
def TARGET_CREATURE_CMC_LEQ_3 = new MagicTargetFilter.MagicCMCPermanentFilter(
MagicTargetFilter.TARGET_CREATURE,
MagicTargetFilter.Operator.LESS_THAN_OR_EQUAL,
3
);
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Destroy each creature with converted mana cost 3 or less."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),TARGET_CREATURE_CMC_LEQ_3);
game.doAction(new MagicDestroyAction(targets));
}
}
]

View File

@ -0,0 +1,9 @@
name=Culling Sun
url=http://magiccards.info/gp/en/109.html
image=http://magiccards.info/scans/en/gp/109.jpg
value=3.358
rarity=R
type=Sorcery
cost={2}{W}{W}{B}
timing=main
requires_groovy_code