Package mage.target.common

Examples of mage.target.common.TargetLandPermanent


    filter.setTargetController(TargetController.YOU);
  }

  public FortifyAbility(Zone zone, AttachEffect effect, Cost cost) {
    super(zone, effect, cost);
    this.addTarget(new TargetLandPermanent(filter));
    timing = TimingRule.SORCERY;
  }
View Full Code Here


    this.subtype.add("Garruk");
    this.color.setGreen(true);
    this.loyalty = new MageInt(3);

    LoyaltyAbility ability1 = new LoyaltyAbility(new UntapTargetEffect(), 1);
    ability1.addTarget(new TargetLandPermanent(2));
    this.addAbility(ability1);

    this.addAbility(new LoyaltyAbility(new CreateTokenEffect(beastToken), -1));

    Effects effects1 = new Effects();
View Full Code Here

    this.subtype.add("Druid");
    this.color.setGreen(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new TapSourceCost());
    TargetLandPermanent target = new TargetLandPermanent(filter);
    ability.addTarget(target);
    this.addAbility(ability);
  }
View Full Code Here

    super(ownerId, 70, "Spreading Seas", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
    this.expansionSetCode = "ZEN";
    this.color.setBlue(true);
    this.subtype.add("Aura");

    TargetPermanent auraTarget = new TargetLandPermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);
    this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardControllerEffect(1), false));
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SpreadingSeasEffect()));

  }
View Full Code Here

    this.subtype.add("Human");
    this.subtype.add("Druid");
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    Ability ability = new EntersBattlefieldTriggeredAbility(new AwakenerDruidEffect(), false);
    ability.addTarget(new TargetLandPermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

        this.amount = effect.amount;
    }

    @Override
    public boolean apply(Game game, Ability source) {
        TargetLandPermanent target = new TargetLandPermanent(0, amount, new FilterLandPermanent(), true);
        if (target.canChoose(source.getControllerId(), game)) {
            if (target.choose(Outcome.Untap, source.getControllerId(), source.getSourceId(), game)) {
                for (Object targetId : target.getTargets()) {
                    Permanent p = game.getPermanent((UUID) targetId);
                    if (p.isTapped())
                        p.untap(game);
                }
            }
View Full Code Here

        this.expansionSetCode = "ZEN";

        this.color.setBlack(true);

        // Destroy target land. Its controller discards a card.
        this.getSpellAbility().addTarget(new TargetLandPermanent());
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addEffect(new DesecratedEarthEffect());

    }
View Full Code Here

        super(ownerId, 70, "Spreading Seas", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
        this.expansionSetCode = "ZEN";
        this.color.setBlue(true);
        this.subtype.add("Aura");

        TargetPermanent auraTarget = new TargetLandPermanent();
        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
        // Enchanted land is an Island.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesBasicLandEnchantedEffect("Island")));
View Full Code Here

        filter.add(new ControllerPredicate(TargetController.YOU));
    }

    public FortifyAbility(Zone zone, AttachEffect effect, Cost cost) {
        super(zone, effect, cost);
        this.addTarget(new TargetLandPermanent(filter));
        timing = TimingRule.SORCERY;
    }
View Full Code Here

        // {1}{R}{R}: Put a blaze counter on target land without a blaze counter on it.
        // For as long as that land has a blaze counter on it, it has "At the beginning
        // of your upkeep, this land deals 1 damage to you." (The land continues to burn
        // after Obsidian Fireheart has left the battlefield.)
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.BLAZE.createInstance()),new ManaCostsImpl("{1}{R}{R}"));
        ability.addTarget(new TargetLandPermanent(filter));
        Effect effect = new ObsidianFireheartGainAbilityEffect(
                new BeginningOfUpkeepTriggeredAbility(
                    new DamageControllerEffect(1),
                    TargetController.YOU,
                    false),
View Full Code Here

TOP

Related Classes of mage.target.common.TargetLandPermanent

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.