Examples of CounterTargetEffect


Examples of mage.abilities.effects.common.CounterTargetEffect

        mode.getEffects().add(new PutOnLibraryTargetEffect(false));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
        // or counter target instant spell.
        mode = new Mode();
        mode.getEffects().add(new CounterTargetEffect());
        mode.getTargets().add(new TargetSpell(filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

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

        //Choose one - Counter target sorcery spell
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filterSorcery));

        //or destroy target creature with power 2 or less
        Mode mode1 = new Mode();
        mode1.getEffects().add(new DestroyTargetEffect());
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        // Buyback {3}
        this.addAbility(new BuybackAbility("{3}"));

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

Examples of mage.abilities.effects.common.CounterTargetEffect

        mode.getEffects().add(new RegenerateTargetEffect());
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);

        mode = new Mode();
        mode.getEffects().add(new CounterTargetEffect());
        mode.getTargets().add(new TargetSpell(filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        this.expansionSetCode = "ODY";

        this.color.setBlue(true);

        // Counter target spell.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
        // Flashback {5}{U}{U}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{5}{U}{U}"),TimingRule.INSTANT));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

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

        // Counter target spell. You gain 3 life.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addEffect(new GainLifeEffect(3));
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        // Kicker {2}
        this.addAbility(new KickerAbility("{2}"));

        // Counter target spell if its converted mana cost is 2 or less. If Prohibit was kicked, counter that spell if its converted mana cost is 4 or less instead.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter4));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

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

        // Counter target spell. Its controller loses 3 life.
        this.getSpellAbility().addTarget(new TargetSpell(new FilterSpell()));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));

    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

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

        // Target player draws two cards.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addEffect(new GainLifeEffect(5));
        this.getSpellAbility().addTarget(new TargetSpell());

    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterTargetEffect

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // Sacrifice Unyaro Griffin: Counter target red instant or sorcery spell.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new CounterTargetEffect(), new SacrificeSourceCost());
        ability.addTarget(new TargetSpell(filter));
        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.