Menu

Submission for Riptide

34

Comment

Adapted from Blinding Light.

Config

name=Riptide
image=http://mtgimage.com/card/riptide.jpg
value=2.500
rarity=C
type=Instant
cost={U}
timing=removal
requires_groovy_code
oracle=Tap all blue creatures.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Tap all blue creatures."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final Collection<MagicPermanent> creatures = game.filterPermanents(MagicTargetFilterFactory.BLUE_CREATURE); 
            for (final MagicPermanent creature : creatures) {
                game.doAction(new MagicTapAction(creature,true));
            }
        }
    }
]
Pushed