Package mage.target

Examples of mage.target.TargetSpell


        this.color.setRed(true);

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


        Effect effect = new CounterUnlessPaysEffect(new RevealTargetFromHandCostCount());
        effect.setText("Counter target spell unless its controller pays {X}.");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(2));
        ability.addCost(new RevealTargetFromHandCost(new TargetCardInHand(0, Integer.MAX_VALUE, filter)));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setRed(true);

        // Choose one - Counter target blue spell; or destroy target blue permanent.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filterSpell));
       
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(filterPermanent));
       
View Full Code Here

        // Sacrifice Cursecatcher: Counter target instant or sorcery spell unless its controller pays {1}.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new CounterUnlessPaysEffect(new GenericManaCost(1)),
                new SacrificeSourceCost());
        ability.addTarget(new TargetSpell(filter));
        this.addAbility(ability);
    }
View Full Code Here

        // <i>Ferocious</i> - If you control a creature with power 4 or greater, counter that spell instead.
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new CounterTargetEffect(),
                FerociousCondition.getInstance(),
                "<br><br><i>Ferocious</i> - If you control a creature with power 4 or greater, counter that spell instead"));
        this.getSpellAbility().addTarget(new TargetSpell(filter));
    }
View Full Code Here

        this.expansionSetCode = "7ED";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {1}.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(1)));
    }
View Full Code Here

        this.color.setBlue(true);

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

        this.expansionSetCode = "JOU";

        this.color.setBlue(true);

        // Counter target spell. Its controller puts the top four cards of his or her library into his or her graveyard.
        this.getSpellAbility().addTarget(new TargetSpell(new FilterSpell()));
        this.getSpellAbility().addEffect(new CountermandEffect());
    }
View Full Code Here

        this.color.setBlue(true);

        // Counter target spell. If that spell is countered this way, put it on top of its owner's library instead of into that player's graveyard.
        this.getSpellAbility().addEffect(new CounterTargetWithReplacementEffect(Zone.LIBRARY, true));
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

        this.getSpellAbility().addTarget(target);       
       
        // <strong>�</strong> Counter target spell unless its controller pays {3}.
        Mode mode = new Mode();
        mode.getEffects().add(new CounterUnlessPaysEffect(new GenericManaCost(3)));
        mode.getTargets().add(new TargetSpell());
        this.getSpellAbility().addMode(mode);
       
        // <strong>�</strong> Creatures with power 3 or less can't block this turn.
        mode = new Mode();
        mode.getEffects().add(new CantBlockAllEffect(filterCantBlock, Duration.EndOfTurn));
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.