Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanent


  public TeeteringPeaks(UUID ownerId) {
    super(ownerId, 226, "Teetering Peaks", Rarity.COMMON, new CardType[]{CardType.LAND}, null);
    this.expansionSetCode = "ZEN";
    this.addAbility(new EntersBattlefieldTappedAbility());
    Ability ability = new EntersBattlefieldTriggeredAbility(new BoostTargetEffect(2, 0, Duration.EndOfTurn), false);
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
    this.addAbility(new RedManaAbility());
  }
View Full Code Here


  public Unsummon(UUID ownerId) {
    super(ownerId, 122, "Unsummon", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{U}");
    this.expansionSetCode = "10E";
    this.color.setBlue(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

    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

    super(ownerId, 31, "Pacifism", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
    this.expansionSetCode = "10E";
    this.color.setWhite(true);
    this.subtype.add("Aura");

    TargetPermanent auraTarget = new TargetCreaturePermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PacifismEffect()));

  }
View Full Code Here

  @Override
  public boolean checkTrigger(GameEvent event, Game game) {
    if (checkInterveningIfClause(game) && game.getActivePlayerId().equals(this.controllerId)) {
      if (event.getType() == EventType.DECLARED_ATTACKERS) {
        if (game.getCombat().attacksAlone()) {
          this.addTarget(new TargetCreaturePermanent());
          this.targets.get(0).add(game.getCombat().getAttackers().get(0), game);
          return true;
        }
      }
    }
View Full Code Here

class AdventuringGearAbility extends LandfallAbility {

  public AdventuringGearAbility() {
    super(null, false);
    this.addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
    this.addTarget(new TargetCreaturePermanent());
  }
View Full Code Here

    public DoomBlade(UUID ownerId){
        super(ownerId, 93, "Doom Blade", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{B}");
        this.expansionSetCode = "M10";
        this.color.setBlack(true);
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
    }
View Full Code Here

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

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}"));
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
    }
View Full Code Here

    LoyaltyAbility ability1 = new LoyaltyAbility(new GideonJuraEffect(), 2);
    ability1.addTarget(new TargetOpponent());
    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new DestroyTargetEffect(), -2);
    ability2.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability2);

    LoyaltyAbility ability3 = new LoyaltyAbility(new BecomesCreatureSourceEOTEffect(new GideonJuraToken(), "planeswalker"), 0);
    ability3.addEffect(new PreventAllDamageSourceEffect(Duration.EndOfTurn));
    this.addAbility(ability3);
View Full Code Here

    super(ownerId, 185, "Unholy Strength", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{B}");
    this.expansionSetCode = "10E";
    this.color.setBlack(true);
    this.subtype.add("Aura");

    TargetPermanent auraTarget = new TargetCreaturePermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new UnholyStrengthEffect()));

  }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCreaturePermanent

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.