Menu

Submission for Culling Sun

109

Comment

tested in magarena 1.43

Config

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

Script

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));
        }
    }
]
Pushed