Package mage.target.common

Examples of mage.target.common.TargetNonlandPermanent


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

        // Exile target nonland permanent.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetNonlandPermanent());
    }
View Full Code Here


        this.expansionSetCode = "M15";

        this.color.setBlue(true);

        // Return target nonland permanent to its owner's hand.
        this.getSpellAbility().addTarget(new TargetNonlandPermanent());
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
    }
View Full Code Here

       // Extort
       this.addAbility(new ExtortAbility());
       // {tap}, Pay 2 life: Remove a counter from target nonland permanent.
       Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RemoveCounterTargetEffect(),new TapSourceCost());
       ability.addTarget(new TargetNonlandPermanent());
       ability.addCost(new PayLifeCost(2));
       this.addAbility(ability);
    }
View Full Code Here

                playerList.getNext();
            }
            do {
                Player player = game.getPlayer(playerList.get());
                if (player != null) {
                    Target target = new TargetNonlandPermanent(filter);
                    target.setNotTarget(true);
                    if (player.choose(Outcome.Exile, target, source.getSourceId(), game)) {
                        Permanent permanent = game.getPermanent(target.getFirstTarget());
                        if (permanent != null) {
                            if (chosenCards.containsKey(permanent)) {
                                int count = chosenCards.get(permanent) + 1;
                                if (count > maxCount) {
                                    maxCount = count;
View Full Code Here

        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever Archon of the Triumvirate attacks, detain up to two target nonland permanents your opponents control.
        // (Until your next turn, those permanents can't attack or block and their activated abilities can't be activated.)
        Ability ability = new AttacksTriggeredAbility(new DetainTargetEffect(), false);
        ability.addTarget(new TargetNonlandPermanent(0,2,filter, false));
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setBlue(true);

        // Put target nonland permanent on top of its owner's library.
        this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
        this.getSpellAbility().addTarget(new TargetNonlandPermanent());
    }
View Full Code Here

        this.addAbility(ability);
       
        // {3}{W}{U}: Detain target nonland permanent an opponent controls.
        // (Until your next turn, that permanent can't attack or block and its activated abilities can't be activated.)
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DetainTargetEffect(), new ManaCostsImpl("{3}{W}{U}"));
        TargetNonlandPermanent target = new TargetNonlandPermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

        super(ownerId, 104, "Avarice Totem", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "5DN";

        // {5}: Exchange control of Avarice Totem and target nonland permanent.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExchangeControlTargetEffect(Duration.EndOfGame, rule, false), new ManaCostsImpl("{5}"));
        ability.addTarget(new TargetNonlandPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // When Sedraxis Alchemist enters the battlefield, if you control a blue permanent, return target nonland permanent to its owner's hand.
        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetNonlandPermanent());
        this.addAbility(new ConditionalTriggeredAbility(ability, new PermanentsOnTheBattlefieldCondition(filter), rule));
       
    }
View Full Code Here

        // +1: Until your next turn, whenever a creature deals combat damage to Vraska the Unseen, destroy that creature.
        this.addAbility(new LoyaltyAbility(new VraskaTheUnseenGainAbilityEffect(new VraskaTheUnseenTriggeredAbility()),1));

        // -3: Destroy target nonland permanent.
        LoyaltyAbility ability = new LoyaltyAbility(new DestroyTargetEffect(), -3);
        ability.addTarget(new TargetNonlandPermanent());
        this.addAbility(ability);

        // -7: Put three 1/1 black Assassin creature tokens onto the battlefield with "Whenever this creature deals combat damage to a player, that player loses the game."
        this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new AssassinToken(), 3), -7));
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetNonlandPermanent

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.