Examples of CounterTargetEffect


Examples of mage.abilities.effects.common.CounterTargetEffect

        this.expansionSetCode = "ROE";

        this.color.setBlue(true);

        // Counter target spell. Look at its controller's hand.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new LayBareEffect());
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

class ShimmeringGlasskiteAbility extends TriggeredAbilityImpl {

    protected int turnUsed;

    public ShimmeringGlasskiteAbility() {
        super(Zone.BATTLEFIELD, new CounterTargetEffect(), false);
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        this.subtype.add("Eldrazi");

        // Counter target spell or ability that targets a permanent you control.
        this.getSpellAbility().addTarget(
                new TargetSpellTargetingControlledPermanent());
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        // Not of This World costs {7} less to cast if it targets a spell or ability that targets a creature you control with power 7 or greater.
        this.addAbility(new SimpleStaticAbility(Zone.STACK, new SpellCostReductionSourceEffect(7, NotOfThisWorldCondition.getInstance())));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        super(ownerId, 38, "Mental Misstep", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{UP}");
        this.expansionSetCode = "NPH";
        this.color.setBlue(true);
       
        // Counter target spell with converted mana cost 1.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        this.expansionSetCode = "M15";

        this.color.setBlue(true);

        // Counter target spell.  If you control a blue creature, draw a card, then discard a card.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new DrawDiscardControllerEffect(1,1),
                new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.MORE_THAN, 0, true),
                "If you control a blue creature, draw a card, then discard a card"));
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

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

        // Counter target creature spell. Put two +1/+1 counters on up to one target creature.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        Effect effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance(2));
        effect.setText("Put two +1/+1 counters on up to one target creature");
        effect.setTargetPointer(new SecondTargetPointer());
        this.getSpellAbility().addEffect(effect);
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        this.expansionSetCode = "JUD";

        this.color.setBlue(true);

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

Examples of mage.abilities.effects.common.CounterTargetEffect

    public Annul(UUID ownerId) {
        super(ownerId, 29, "Annul", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{U}");
        this.expansionSetCode = "MRD";
        this.color.setBlue(true);
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        this.expansionSetCode = "NPH";

        this.color.setBlue(true);
        // Counter target creature spell. Its controller loses 1 life.
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(1));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        Ability ability = new HeroicAbility(new MindreaverExileEffect(), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
        // {U}{U}, Sacrifice Mindreaver: Counter target spell with the same name as a card exiled with mindreaver.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{U}{U}"));
        FilterSpell filter = new FilterSpell("spell with the same name as a card exiled with mindreaver");
        filter.add(new MindreaverNamePredicate(this.getId()));
        ability.addTarget(new TargetSpell(filter));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.