Package mage.target.common

Examples of mage.target.common.TargetArtifactPermanent


        this.color.setBlue(true);
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(4)), false));

        // +1: Untap up to two target artifacts.
        LoyaltyAbility ability = new LoyaltyAbility(new UntapTargetEffect(), 1);
        ability.addTarget(new TargetArtifactPermanent(0, 2));
        this.addAbility(ability);
        // -X: Search your library for an artifact card with converted mana cost X or less and put it onto the battlefield. Then shuffle your library.
        this.addAbility(new LoyaltyAbility(new TezzeretTheSeekerEffect2()));
        // -5: Artifacts you control become artifact creatures with base power and toughness 5/5 until end of turn.
        this.addAbility(new LoyaltyAbility(new TezzeretTheSeekerEffect3(), -5));
View Full Code Here


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

        // Choose one - Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Target target = new TargetArtifactPermanent();
        this.getSpellAbility().addTarget(target);
        // or destroy target enchantment;
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        target = new TargetPermanent(new FilterEnchantmentPermanent());
        mode.getTargets().add(target);
        this.getSpellAbility().addMode(mode);
        // or destroy target artifact and target enchantment.
        mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        target = new TargetArtifactPermanent();
        mode.getTargets().add(target);
        Effect effect = new DestroyTargetEffect();
        effect.setTargetPointer(new SecondTargetPointer());
        effect.setText("and target enchantment");
        mode.getEffects().add(effect);
View Full Code Here

        this.addAbility(new SkipUntapOptionalAbility());

        // {1}, {tap}: Tap target artifact. It doesn't untap during its controller's untap step for as long as Rust Tick remains tapped.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RustTickTapTargetEffect(), new GenericManaCost(1));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new RustTickRestrictionEffect()));
    }
View Full Code Here

        // Wear
        // Destroy target artifact.
        getLeftHalfCard().getColor().setRed(true);
        getLeftHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
        Target target = new TargetArtifactPermanent();
        getLeftHalfCard().getSpellAbility().addTarget(target);

        // Tear
        // Destroy target enchantment.
        getRightHalfCard().getColor().setWhite(true);
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(4);

        // At the beginning of your upkeep, you may put a charge counter on target artifact.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new AddCountersTargetEffect(CounterType.CHARGE.createInstance()), TargetController.YOU, true);
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }
View Full Code Here

       
        // -2: Gain control of target artifact.
        effect = new GainControlTargetEffect(Duration.EndOfGame);
        effect.setText("Gain control of target artifact");
        ability = new LoyaltyAbility(effect, -2);
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
       
        // -6: You get an emblem with "Whenever you cast a spell that targets one or more permanents, gain control of those permanents."
        effect = new GetEmblemEffect(new DackFaydenEmblem());
        effect.setText("You get an emblem with \"Whenever you cast a spell that targets one or more permanents, gain control of those permanents.\"");
View Full Code Here

        super(ownerId, 237, "Relic Barrier", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{2}");
        this.expansionSetCode = "LEG";

        // {tap}: Tap target artifact.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost());
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        super(ownerId, 61, "Crush", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{R}");
        this.expansionSetCode = "MBS";

        this.color.setRed(true);

        this.getSpellAbility().addTarget(new TargetArtifactPermanent(filter));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
    }
View Full Code Here

        this.expansionSetCode = "RTR";

        this.color.setRed(true);

        // Destroy target artifact you don't control.
        this.getSpellAbility().addTarget(new TargetArtifactPermanent(filter));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());

        // Overload {4}{R} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
        this.addAbility(new OverloadAbility(this, new DestroyAllEffect(filter), new ManaCostsImpl("{4}{R}"), TimingRule.SORCERY));
View Full Code Here

        // Destroy target artifact, target creature, target enchantment, and target land.
        Effect effect = new DestroyTargetEffect();
        effect.setText("Destroy target artifact, target creature, target enchantment, and target land.");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
        this.getSpellAbility().addTarget(new TargetLandPermanent());
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetArtifactPermanent

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.