Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanent


  public ActOfTreason(UUID ownerId) {
    super(ownerId, 124, "Act of Treason", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{R}");
    this.expansionSetCode = "M10";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
    this.getSpellAbility().addEffect(new UntapTargetEffect());
    this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));

  }
View Full Code Here


  public StabbingPain(UUID ownerId) {
    super(ownerId, 118, "Stabbing Pain", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{B}");
    this.expansionSetCode = "M11";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new BoostTargetEffect(-1, -1, Duration.EndOfTurn));
    this.getSpellAbility().addEffect(new TapTargetEffect());
  }
View Full Code Here

  public Excommunicate(UUID ownerId) {
    super(ownerId, 11, "Excommunicate", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{2}{W}");
    this.expansionSetCode = "ALA";
    this.color.setWhite(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
  }
View Full Code Here

    public Disorient(UUID ownerId) {
        super(ownerId, 48, "Disorient", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{3}{U}");
        this.expansionSetCode = "M10";
        this.color.setBlue(true);

        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new BoostTargetEffect(-7, 0, Duration.EndOfTurn));
    }
View Full Code Here

    this.color.setBlue(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

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

    public Weakness(UUID ownerId) {
        super(ownerId, 121, "Weakness", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{B}");
        this.expansionSetCode = "M10";
        this.color.setBlack(true);
        this.subtype.add("Aura");
        TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.UnboostCreature));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new WeaknessEffect()));
    }
View Full Code Here

        super(ownerId, 197, "Oakenform", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
        this.expansionSetCode = "M10";
        this.color.setGreen(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 OakenformEffect()));
    }
View Full Code Here

    this.color.setBlue(true);
    this.subtype.add("Siren");
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AlluringSirenEffect(), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

  public ThunderStrike(UUID ownerId) {
    super(ownerId, 157, "Thunder Strike", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}");
    this.expansionSetCode = "M11";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new BoostTargetEffect(2, 0, Duration.EndOfTurn));
    this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn));
  }
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.