Package mage.target

Examples of mage.target.TargetSpell


        super(ownerId, 100, "Remove Soul", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{U}");
        this.expansionSetCode = "10E";

        this.color.setBlue(true);

        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
    }
View Full Code Here


        // Vexing Shusher can't be countered.
        this.addAbility(new CantCounterAbility());
        // {R/G}: Target spell can't be countered by spells or abilities.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new VexingShusherCantCounterTargetEffect(), new ManaCostsImpl("{R/G}"));
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

    public Flashfreeze(UUID ownerId) {
        super(ownerId, 84, "Flashfreeze", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{U}");
        this.expansionSetCode = "10E";
        this.color.setBlue(true);
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
    }
View Full Code Here

        this.expansionSetCode = "ISD";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {1}. That player discards a card.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new FrightfulDelusionEffect());
    }
View Full Code Here

    public Discombobulate(UUID ownerId) {
        super(ownerId, 81, "Discombobulate", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{U}{U}");
        this.expansionSetCode = "10E";
        this.color.setBlue(true);
                // Counter target spell. Look at the top four cards of your library, then put them back in any order.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterTargetEffect());
                this.getSpellAbility().addEffect(new LookLibraryControllerEffect(4));
    }
View Full Code Here

        this.color.setBlue(true);

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

        if (ability instanceof SpellAbility) {
            int xValue = ability.getManaCostsToPay().getX();
            ability.getTargets().clear();
            FilterSpell newfilter = new FilterSpell(new StringBuilder("spell with converted mana cost ").append(xValue).toString());
            newfilter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.Equal, xValue));
            Target target = new TargetSpell(newfilter);
            ability.addTarget(target);
        }

    }
View Full Code Here

        // If an opponent cast a blue spell this turn, you may pay {R} rather than pay Ricochet Trap's mana cost.
        this.getSpellAbility().addAlternativeCost(new RicochetTrapAlternativeCost());

        // Change the target of target spell with a single target.
        this.getSpellAbility().addEffect(new ChooseNewTargetsTargetEffect(true, true));
        this.getSpellAbility().addTarget(new TargetSpell(filter));

        this.addWatcher(new RicochetTrapWatcher());
    }
View Full Code Here

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {1} for each card in your graveyard.
        this.getSpellAbility().addEffect(new CircularLogicCounterUnlessPaysEffect());
        this.getSpellAbility().addTarget(new TargetSpell());

        // Madness {U}
        this.addAbility(new MadnessAbility(this, new ManaCostsImpl("{U}")));
    }
View Full Code Here

        this.color.setBlue(true);

        // Counter target spell. Scry 1. (Look at the top card of your library. You may put that card on the bottom of your library.)
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        Target target = new TargetSpell();
        this.getSpellAbility().addTarget(target);
        this.getSpellAbility().addEffect(new ScryEffect(1));
    }
View Full Code Here

TOP

Related Classes of mage.target.TargetSpell

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.