Examples of TargetArtifactPermanent


Examples of mage.target.common.TargetArtifactPermanent

        // Affinity for artifacts
        this.addAbility(new AffinityForArtifactsAbility());
        // Return target artifact to its owner's hand.
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
    }
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        this.toughness = new MageInt(3);

        // {1}{R}, {tap}: Destroy target artifact. Viashino Heretic deals damage to that artifact's controller equal to the artifact's converted mana cost.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ViashinoHereticEffect(), new ManaCostsImpl("{1}{R}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        getLeftHalfCard().getSpellAbility().addChoice(new ChoiceColor());

        // Reality
        // Destroy target artifact.
        getRightHalfCard().getColor().setGreen(true);
        getRightHalfCard().getSpellAbility().addTarget(new TargetArtifactPermanent());
        getRightHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());

    }
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        mode.getTargets().add(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addMode(mode);
        // or destroy target artifact.
        mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect(true));
        Target target = new TargetArtifactPermanent();
        mode.getTargets().add(target);
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        this.toughness = new MageInt(1);

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

Examples of mage.target.common.TargetArtifactPermanent

        // 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 destroy target land.
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetLandPermanent());
        this.getSpellAbility().getModes().addMode(mode);
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        effect.setText("");
        LoyaltyAbility ability1 = new LoyaltyAbility(effect, -1);
        effect = new SetPowerToughnessTargetEffect(5,5, Duration.EndOfGame);
        effect.setText("Target artifact becomes an artifact creature with base power and toughness 5/5");
        ability1.addEffect(effect);
        ability1.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability1);

        // -4: Target player loses X life and you gain X life, where X is twice the number of artifacts you control.
        LoyaltyAbility ability2 = new LoyaltyAbility(new TezzeretAgentOfBolasEffect2(), -4);
        ability2.addTarget(new TargetPlayer());
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

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

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

Examples of mage.target.common.TargetArtifactPermanent

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

        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{W}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetArtifactPermanent

        // Choose one - Counter target artifact spell; or return target artifact to its owner's hand.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetArtifactPermanent());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.