Package mage.target.common

Examples of mage.target.common.TargetArtifactPermanent


        this.subtype.add("Aura");

        this.color.setBlue(true);

        // Enchant artifact
         TargetPermanent auraTarget = new TargetArtifactPermanent();
        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        // You control enchanted artifact.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ControlEnchantedEffect()));
    }
View Full Code Here


        this.toughness = new MageInt(1);

        // {R}, Sacrifice Reckless Reveler: Destroy target artifact.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{R}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetArtifactPermanent());
       
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setGreen(true);

        // Choose one or more - Destroy target artifact; destroy target enchantment; and/or destroy target land.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        this.getSpellAbility().getModes().setMaxModes(1);
        this.getSpellAbility().getModes().setMaxModes(3);

        Mode mode1 = new Mode();
        mode1.getEffects().add(new DestroyTargetEffect());
View Full Code Here

        return new TuktukScrapperEffect(this);
    }

    @Override
    public boolean apply(Game game, Ability source) {
        TargetArtifactPermanent target = new TargetArtifactPermanent();
        Player you = game.getPlayer(source.getControllerId());
        if (you != null) {
            if (target.canChoose(source.getControllerId(), game) && target.choose(Outcome.DestroyPermanent, source.getControllerId(), source.getSourceId(), game)) {
                Permanent targetedArtifact = game.getPermanent(target.getFirstTarget());
                if (targetedArtifact != null) {
                    Card artifact = game.getCard(targetedArtifact.getId());
                    Player controller = game.getPlayer(targetedArtifact.getControllerId());
                    targetedArtifact.destroy(id, game, true);
                    if (controller.getGraveyard().contains(artifact.getId())) {
View Full Code Here

        this.power = new MageInt(5);
        this.toughness = new MageInt(3);

        // When Wild Celebrants enters the battlefield, you may destroy target artifact.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
        Target target = new TargetArtifactPermanent();
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

        // Tap two untapped artifacts you control: Untap target artifact.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new UntapTargetEffect(),
                new TapTargetCost(new TargetControlledPermanent(2, 2, filter, true)));
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        // Choose one -
        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(1);
        // Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        // or target creature gets +1/+1 and gains trample until end of turn;
        Mode mode = new Mode();
        Effect effect = new BoostTargetEffect(1,1, Duration.EndOfTurn);
        effect.setText("target creature gets +1/+1");
        mode.getEffects().add(effect);
View Full Code Here

        this.color.setRed(true);

        // Destroy target artifact.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
    }
View Full Code Here

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

        // When Ingot Chewer enters the battlefield, destroy target artifact.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
        Target target = new TargetArtifactPermanent();
        ability.addTarget(target);
        this.addAbility(ability);
        // Evoke {R}
        this.addAbility(new EvokeAbility(this, "{R}"));
    }
View Full Code Here

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

        // Choose one - Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        // or put target creature on the bottom of its owner's library;
        Mode mode = new Mode();
        mode.getEffects().add(new PutOnLibraryTargetEffect(false));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
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.