Menu

Submission for Desolation Angel

38

Config

name=Desolation Angel
image=http://mtgimage.com/card/desolation%20angel.jpg
value=2.500
rarity=R
type=Creature
subtype=Angel
cost={3}{B}{B}
pt=5/4
ability=Kicker {W}{W};\
Flying
timing=main
requires_groovy_code
oracle=Kicker {W}{W}. Flying. When Desolation Angel enters the battlefield, destroy all lands you control. If it was kicked, destroy all lands instead.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                payedCost.getKicker(),
                this,
                payedCost.isKicked() ?
                    "Destroy all lands." :
                    "Destroy all lands you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getRefInt() == 1) {
                game.addEvent(MagicRuleEventAction.create("Destroy all lands.").getEvent(event.getSource()));
            } else {
                game.addEvent(MagicRuleEventAction.create("Destroy all lands you control.").getEvent(event.getSource()));
            }
        }
    }
]
Pushed