Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanent


  }

  @Override
  public boolean checkTrigger(GameEvent event, Game game) {
    if (event.getType() == EventType.BLOCKER_DECLARED && event.getSourceId().equals(this.getSourceId())) {
      this.addTarget(new TargetCreaturePermanent());
      this.getTargets().get(0).add(event.getTargetId(), game);
      return true;
    }
    return false;
  }
View Full Code Here


    effects2.add(new GainControlTargetEffect(Duration.EndOfTurn));
    effects2.add(new UntapTargetEffect());
    effects2.add(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));

    LoyaltyAbility ability = new LoyaltyAbility(effects2, -2);
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);

    this.addAbility(new LoyaltyAbility(new CreateTokenEffect(dragonToken), -6));
  }
View Full Code Here

      }
    }
    if (defender != null) {
      FilterCreaturePermanent filter = new FilterCreaturePermanent("creature defending player owns");
      filter.getControllerId().add(defender.getId());
      TargetCreaturePermanent target = new TargetCreaturePermanent(filter);
      Player player = game.getPlayer(source.getControllerId());
      player.choose(Outcome.Damage, target, game);
      Permanent permanent = game.getPermanent(target.getFirstTarget());
      Permanent cyclops = game.getPermanent(source.getSourceId());
      if (permanent != null && cyclops != null) {
        permanent.damage(cyclops.getPower().getValue(), cyclops.getId(), game, true, false);
        cyclops.damage(permanent.getPower().getValue(), permanent.getId(), game, true, false);
        return true;
View Full Code Here

    super(ownerId, 90, "Searing Blaze", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{R}{R}");
    this.expansionSetCode = "WWK";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetPlayer());
    //TODO: change this to only allow creatures controlled by first target
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new SearingBlazeEffect());
    this.watchers.add(new SearingBlazeWatcher(ownerId));
  }
View Full Code Here

    LoyaltyAbility ability2 = new LoyaltyAbility(new JaceTheMindSculptorEffect2(), 0);
    this.addAbility(ability2);

    LoyaltyAbility ability3 = new LoyaltyAbility(new ReturnToHandTargetEffect(), -1);
    ability3.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability3);

    LoyaltyAbility ability4 = new LoyaltyAbility(new JaceTheMindSculptorEffect3(), -12);
    ability4.addTarget(new TargetPlayer());
    this.addAbility(ability4);
View Full Code Here

    super(ownerId, 111, "Quag Sickness", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
    this.expansionSetCode = "M11";
    this.color.setBlack(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 QuagSicknessEffect()));

  }
View Full Code Here

  public BituminousBlast(UUID ownerId) {
    super(ownerId, 34, "Bituminous Blast", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{3}{B}{R}");
    this.expansionSetCode = "ARB";
    this.color.setBlack(true);
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new DamageTargetEffect(4));
    this.addAbility(new CascadeAbility());
  }
View Full Code Here

  public Terminate(UUID ownerId) {
    super(ownerId, 46, "Terminate", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{B}{R}");
    this.expansionSetCode = "ARB";
    this.color.setBlack(true);
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new DestroyNoRegenTargetEffect());
  }
View Full Code Here

  public PathToExile(UUID ownerId) {
    super(ownerId, 15, "Path to Exile", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{W}");
    this.expansionSetCode = "CON";
    this.color.setWhite(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new PathToExileEffect());
  }
View Full Code Here

    this.subtype.add("Shapeshifter");
    this.power = new MageInt(0);
    this.toughness = new MageInt(0);

    Ability ability = new EntersBattlefieldAbility(new CopyEffect(), "You may have Clone enter the battlefield as a copy of any creature on the battlefield");
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
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.