Menu

Submission for Keldon Berserker

93

Config

name=Keldon Berserker
image=http://mtgimage.com/card/keldon%20berserker.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Soldier,Berserker
cost={3}{R}
pt=2/3
timing=main
requires_groovy_code
oracle=Whenever Keldon Berserker attacks, if you control no untapped lands, it gets +3/+0 until end of turn.

Script

[
    new MagicWhenSelfAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
            return permanent.getController().controlsPermanent(MagicTargetFilterFactory.UNTAPPED_LAND) == false ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gains +3/+0 until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().controlsPermanent(MagicTargetFilterFactory.UNTAPPED_LAND) == false) {
                game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
            }
        }
    }
]
Pushed