Package mage.target.common

Examples of mage.target.common.TargetCreatureOrPlayer


        this.color.setRed(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
        ability.addEffect(new DamageControllerEffect(1));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here


        this.addAbility(FlyingAbility.getInstance());

        // Whenever Scourge of Valkas or another Dragon enters the battlefield under your control, it deals X damage to target creature or player, where X is the number of Dragons you control.
        DynamicValue dragons = new PermanentsOnBattlefieldCount(filter2);
        Ability ability = new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(dragons), filter, false, rule);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

        // {R}: Scourge of Valkas gets +1/+0 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
View Full Code Here

        // {3}, {tap}: Name a card. Reveal a card at random from your hand. If it's the named card, Cursed Scroll deals 2 damage to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NameACardEffect(NameACardEffect.TypeOfName.ALL), new ManaCostsImpl("{3}"));
        ability.addEffect(new CursedScrollEffect());
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setRed(true);

        // {R}, Sacrifice a creature: Barrage of Expendables deals 1 damage to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{R}"));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
       
    }
View Full Code Here

        this.subtype.add("Cleric");
        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(3);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 3), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
        // {tap}: Prevent the next 3 damage that would be dealt to target creature or player this turn.
    }
View Full Code Here

        // Buyback {4} (You may pay an additional {4} as you cast this spell. If you do, put this card into your hand as it resolves.)
        this.addAbility(new BuybackAbility("{4}"));

        // Searing Touch deals 1 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(1));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // {R}, {tap}: Spikeshot Goblin deals damage equal to its power to target creature or player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SpikeshotGoblinEffect(), new ColoredManaCost(ColoredManaSymbol.R));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

  public Corrupt(UUID ownerId) {
    super(ownerId, 89, "Corrupt", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{5}{B}");
    this.expansionSetCode = "M11";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    this.getSpellAbility().addEffect(new CorruptEffect());
  }
View Full Code Here

  public Fling(UUID ownerId) {
    super(ownerId, 139, "Fling", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}");
    this.expansionSetCode = "M11";
    this.color.setRed(true);
    this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
    this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    this.getSpellAbility().addEffect(new FlingEffect());
  }
View Full Code Here

class FurnaceCelebrationAbility extends TriggeredAbilityImpl {

    public FurnaceCelebrationAbility() {
        super(Zone.BATTLEFIELD, new DoIfCostPaid(new DamageTargetEffect(2), new ManaCostsImpl("{2}")));
        this.addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCreatureOrPlayer

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.