Menu

Submission for Returned Phalanx

104

Config

name=Returned Phalanx
image=http://magiccards.info/scans/en/ths/104.jpg
value=3.258
rarity=C
type=Creature
subtype=Zombie,Soldier
cost={1}{B}
pt=3/3
ability=Defender
timing=main
requires_groovy_code
oracle=Defender. {1}{U}: Returned Phalanx can attack this turn as though it didn't have defender.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "-Defender"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicPayManaCostEvent(source, "{1}{U}")];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "SN can attack this turn as though it didn't have defender."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(MagicChangeStateAction.Set(event.getPermanent(),MagicPermanentState.CanAttackWithDefender));
        }
    }
]
Pushed