Menu

Submission for Iona, Shield of Emeria

13

Comment

incomplete script. this is as far as i can go with this script. don't know which function to stop player cast certain color spell. :)

Config

name=Iona, Shield of Emeria
url=http://magiccards.info/zen/en/13.html
image=http://magiccards.info/scans/en/zen/13.jpg
value=4.353
rarity=M
type=Legendary,Creature
subtype=Angel
cost={6}{W}{W}{W}
pt=7/7
ability=flying
timing=fmain
requires_groovy_code

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                MagicColorChoice.ALL_INSTANCE,
                this,
                "Choose a color\$. " +
                "Your opponents can't cast spells of the chosen color."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicColor color = event.getChosenColor();
            game.doAction(new MagicChangePlayerStateAction(
                event.getPlayer().getOpponent(),
                MagicPlayerState.CantCastSpells
            ));
        }
    }
]
Pushed