Package mage.target.common

Examples of mage.target.common.TargetControlledCreaturePermanent


*/
public class EquipAbility extends ActivatedAbilityImpl<EquipAbility> {

  public EquipAbility(Outcome outcome, Cost cost) {
    super(Zone.BATTLEFIELD, new AttachEffect(outcome), cost);
    this.addTarget(new TargetControlledCreaturePermanent());
    this.timing = TimingRule.SORCERY;
  }
View Full Code Here


        this.subtype.add("Rogue");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl(""));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }
View Full Code Here

    this.expansionSetCode = "ROE";
    this.color.setBlack(true);
    this.subtype.add("Vampire");
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new SacrificeTargetCost(new TargetControlledCreaturePermanent())));
  }
View Full Code Here

  public SejiriSteppe(UUID ownerId) {
    super(ownerId, 142, "Sejiri Steppe", Rarity.COMMON, new CardType[]{CardType.LAND}, null);
    this.expansionSetCode = "WWK";
    this.addAbility(new EntersBattlefieldTappedAbility());
    EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn), false);
    ability.addTarget(new TargetControlledCreaturePermanent());
    ability.addChoice(new ChoiceColor());
    this.addAbility(ability);
    this.addAbility(new WhiteManaAbility());
  }
View Full Code Here

    this.subtype.add("Vampire");
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter1, true)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CaptivatingVampireEffect(), new TapTargetCost(new TargetControlledCreaturePermanent(5, 5, filter2, true)));
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

    return new EldraziMonumentEffect(this);
  }

  @Override
  public boolean apply(Game game, Ability source) {
    TargetControlledPermanent target = new TargetControlledCreaturePermanent();
    target.setRequired(true);
    Player player = game.getPlayer(source.getControllerId());
    if (target.canChoose(source.getId(), source.getControllerId(), game)) {
      player.choose(this.outcome, target, game);
      Permanent permanent = game.getPermanent(target.getFirstTarget());
      if (permanent != null) {
        return permanent.sacrifice(source.getSourceId(), game);
      }
    }
    Permanent permanent = game.getPermanent(source.getSourceId());
View Full Code Here

        this.color.setGreen(true);
        this.subtype.add("Lizard");
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddPlusOneCountersSourceEffect(1), new ManaCostsImpl());
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }
View Full Code Here

    this.subtype.add("Wizard");
    this.color.setBlack(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);

    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new SacrificeTargetCost(new TargetControlledCreaturePermanent())));
  }
View Full Code Here

    public SoulsMajesty(UUID ownerId) {
        super(ownerId, 92, "Soul's Majesty", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{4}{G}");
        this.expansionSetCode = "CON";
        this.color.setGreen(true);
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
        this.getSpellAbility().addEffect(new SoulsMajestyEffect());
    }
View Full Code Here

        this.expansionSetCode = "ZEN";

        this.color.setBlack(true);

        // Kicker - Tap an untapped Vampire you control.
        OptionalAdditionalCost cost = new OptionalAdditionalCostImpl("Kicker-","",new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
        this.addAbility(new KickerAbility(cost));

        // Target opponent loses half his or her life, rounded up.
        this.getSpellAbility().addTarget(new TargetOpponent());
        this.getSpellAbility().addEffect(new BloodTributeLoseLifeEffect());
View Full Code Here

TOP

Related Classes of mage.target.common.TargetControlledCreaturePermanent

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.