Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.CounterTargetEffect


        this.expansionSetCode = "THS";

        this.color.setBlue(true);

        // Counter target blue spell.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        Target target = new TargetSpell(filter);
        this.getSpellAbility().addTarget(target);
    }
View Full Code Here


        super(ownerId, 49, "Turn Aside", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{U}");
        this.expansionSetCode = "SOM";
        this.color.setBlue(true);

        // Counter target spell that targets a permanent you control.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new CustomTargetSpell(filter));
    }
View Full Code Here

    public HisokasDefiance(UUID ownerId) {
        super(ownerId, 67, "Hisoka's Defiance", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{U}");
        this.expansionSetCode = "CHK";
        this.color.setBlue(true);
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
    }
View Full Code Here

    public Frazzle(UUID ownerId) {
        super(ownerId, 25, "Frazzle", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{3}{U}");
        this.expansionSetCode = "GPT";
        this.color.setBlue(true);
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));

        // Counter target nonblue spell.
    }
View Full Code Here

        this.color.setBlue(true);
        this.color.setGreen(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        this.addAbility(FlashAbility.getInstance());
        Ability ability = new EntersBattlefieldTriggeredAbility(new CounterTargetEffect());
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "DIS";

        this.color.setBlue(true);

        // Counter target spell with converted mana cost 2.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {U}, Sacrifice Glen Elendra Archmage: Counter target noncreature spell.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{U}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetSpell(filter));
        this.addAbility(ability);
        // Persist
        this.addAbility(new PersistAbility());
View Full Code Here

        ability.setRuleAtTheTop(true);
        this.addAbility(ability);

        // Counter target spell you don't control.
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterTargetEffect());

        // Overload {1}{U}{U}{R} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
        this.addAbility(new OverloadAbility(this, new CounterfluxEffect(), new ManaCostsImpl("{1}{U}{U}{R}")));
    }
View Full Code Here

        this.color.setRed(true);
        this.color.setBlue(true);

        // Counter up to two target spells.
        Effect effect = new CounterTargetEffect();
        effect.setText("Counter up to two target spells");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell(0, 2, new FilterSpell()));
    }
View Full Code Here

        this.color.setBlue(true);

        // Counter target spell that targets a creature.
        this.getSpellAbility().addTarget(new InterveneTargetSpell());
        this.getSpellAbility().addEffect(new CounterTargetEffect());
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.CounterTargetEffect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.