Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanent


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


  public Combust(UUID ownerId) {
    super(ownerId, 130, "Combust", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}");
    this.expansionSetCode = "M11";
    this.color.setRed(true);
    this.getSpellAbility().addEffect(new DamageTargetEffect(5, false));
    this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(new SimpleStaticAbility(Zone.STACK, new CantCounterSourceEffect()));
  }
View Full Code Here

    super(ownerId, 3, "Armored Ascension", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
    this.expansionSetCode = "M10";
    this.color.setWhite(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 ArmoredAscensionEffect()));

  }
View Full Code Here

    this.subtype.add("Elemental");
    this.power = new MageInt(4);
    this.toughness = new MageInt(3);
    this.addAbility(FlyingAbility.getInstance());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{2}{U}"));
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
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 GainAbilityTargetEffect(UnblockableAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter2));
    this.addAbility(ability);
  }
View Full Code Here

    this.color.setWhite(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(2);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
    ability.addCost(new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

    Effects effects1 = new Effects();
    effects1.add(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
    effects1.add(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn));
    LoyaltyAbility ability1 = new LoyaltyAbility(effects1, 1);
    ability1.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability1);

    this.addAbility(new LoyaltyAbility(new ElspethKnightErrantEffect(), -8));

  }
View Full Code Here

    super(ownerId, 226, "Mystifying Maze", Rarity.RARE, new CardType[]{CardType.LAND}, null);
    this.expansionSetCode = "M11";
    this.addAbility(new ColorlessManaAbility());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MystifyingMazeEffect(), new ManaCostsImpl("{4}"));
    ability.addCost(new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

    super(ownerId, 56, "Ice Cage", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
    this.expansionSetCode = "M10";
    this.color.setBlue(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 IceCageEffect()));
    this.addAbility(new IceCageAbility());
  }
View Full Code Here

    LoyaltyAbility ability1 = new LoyaltyAbility(new DamageTargetEffect(1), 1);
    ability1.addTarget(new TargetPlayer());
    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new DamageXTargetEffect());
    ability2.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability2);

    Effects effects1 = new Effects();
    effects1.add(new DamageTargetEffect(10));
    effects1.add(new DamageAllControlledTargetEffect(10, FilterCreaturePermanent.getDefault()));
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.