Package mage.abilities.effects.common.continious

Examples of mage.abilities.effects.common.continious.AddCardTypeTargetEffect


                if (filter.match(card, game) && player.chooseUse(outcome, new StringBuilder("Put ").append(card.getName()).append("onto battlefield?").toString(), game)) {
                    card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), source.getControllerId());
                    Permanent permanent = game.getPermanent(card.getId());
                    if (permanent != null) {
                        permanent.addCounters(new Counter("Manifestation"), game);
                        ContinuousEffect effect = new AddCardTypeTargetEffect(CardType.ENCHANTMENT, Duration.Custom);
                        effect.setTargetPointer(new FixedTarget(permanent.getId()));
                        game.addEffect(effect, source);
                    }
                }
            }
            return true;
View Full Code Here


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

        // {1}{U}{U}: Target permanent becomes an artifact in addition to its other types.
        Effect effect = new AddCardTypeTargetEffect(CardType.ARTIFACT, Duration.WhileOnBattlefield);
        effect.setText("Target permanent becomes an artifact in addition to its other types");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{U}{U}"));
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);

        // {3}{U}: Gain control of target artifact.
View Full Code Here

public class LiquimetalCoating extends CardImpl {

    public LiquimetalCoating (UUID ownerId) {
        super(ownerId, 171, "Liquimetal Coating", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{2}");
        this.expansionSetCode = "SOM";
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCardTypeTargetEffect(CardType.ARTIFACT, Duration.EndOfTurn), new TapSourceCost());
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        // +1: Look at the top five cards of your library. You may reveal an artifact card from among them and put it into your hand. Put the rest on the bottom of your library in any order.
        this.addAbility(new LoyaltyAbility(new LookLibraryAndPickControllerEffect(5, 1, filter, true), 1));

        // -1: Target artifact becomes an artifact creature with base power and toughness 5/5.
        Effect effect = new AddCardTypeTargetEffect(CardType.CREATURE, Duration.EndOfGame);
        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.
View Full Code Here

        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
        Effect effect = new GainAbilityTargetEffect(DefenderAbility.getInstance(), Duration.Custom);
        effect.setText("It gains defender");
        ability.addEffect(effect);
        effect = new AddCardTypeTargetEffect(CardType.ARTIFACT, Duration.Custom);
        effect.setText("and becomes a colorless artifact in addition to its other types");
        ability.addEffect(effect);
        ability.addEffect(new SetCardColorTargetEffect(new ObjectColor(), Duration.Custom, ""));
        ability.addEffect(new XathridGorgonCantActivateEffect());
        this.addAbility(ability);
View Full Code Here

        super(ownerId, 27, "Argent Mutation", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{U}");
        this.expansionSetCode = "NPH";

        this.color.setBlue(true);

        this.getSpellAbility().addEffect(new AddCardTypeTargetEffect(CardType.ARTIFACT, Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetPermanent());
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.continious.AddCardTypeTargetEffect

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.