示例#1
0
  public GrimPoppet(UUID ownerId) {
    super(
        ownerId,
        252,
        "Grim Poppet",
        Rarity.RARE,
        new CardType[] {CardType.ARTIFACT, CardType.CREATURE},
        "{7}");
    this.expansionSetCode = "SHM";
    this.subtype.add("Scarecrow");
    this.power = new MageInt(4);
    this.toughness = new MageInt(4);

    // Grim Poppet enters the battlefield with three -1/-1 counters on it.
    this.addAbility(
        new EntersBattlefieldAbility(
            new AddCountersSourceEffect(CounterType.M1M1.createInstance(3), false)));

    // Remove a -1/-1 counter from Grim Poppet: Put a -1/-1 counter on another target creature.
    Ability ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new AddCountersTargetEffect(CounterType.M1M1.createInstance()),
            new RemoveCountersSourceCost(CounterType.M1M1.createInstance()));
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
示例#2
0
  public PunctureBolt(UUID ownerId) {
    super(
        ownerId, 102, "Puncture Bolt", Rarity.COMMON, new CardType[] {CardType.INSTANT}, "{1}{R}");
    this.expansionSetCode = "SHM";

    // Puncture Bolt deals 1 damage to target creature. Put a -1/-1 counter on that creature.
    this.getSpellAbility().addEffect(new DamageTargetEffect(1));
    this.getSpellAbility()
        .addEffect(new AddCountersTargetEffect(CounterType.M1M1.createInstance()));
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  }
示例#3
0
  public SturdyHatchling(UUID ownerId) {
    super(
        ownerId,
        163,
        "Sturdy Hatchling",
        Rarity.UNCOMMON,
        new CardType[] {CardType.CREATURE},
        "{3}{G/U}");
    this.expansionSetCode = "EVE";
    this.subtype.add("Elemental");
    this.color.setBlue(true);
    this.color.setGreen(true);
    this.power = new MageInt(6);
    this.toughness = new MageInt(6);

    // Sturdy Hatchling enters the battlefield with four -1/-1 counters on it.
    this.addAbility(
        new EntersBattlefieldAbility(
            new AddCountersSourceEffect(CounterType.M1M1.createInstance(4)),
            "with four -1/-1 counters on it"));
    // {G/U}: Sturdy Hatchling gains shroud until end of turn.
    this.addAbility(
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new GainAbilitySourceEffect(ShroudAbility.getInstance(), Duration.EndOfTurn),
            new ManaCostsImpl("{G/U}")));
    // Whenever you cast a green spell, remove a -1/-1 counter from Sturdy Hatchling.
    this.addAbility(
        new SpellCastControllerTriggeredAbility(
            new RemoveCounterSourceEffect(CounterType.M1M1.createInstance(1)),
            filterGreenSpell,
            false));
    // Whenever you cast a blue spell, remove a -1/-1 counter from Sturdy Hatchling.
    this.addAbility(
        new SpellCastControllerTriggeredAbility(
            new RemoveCounterSourceEffect(CounterType.M1M1.createInstance(1)),
            filterBlueSpell,
            false));
  }
示例#4
0
 public FeveredConvulsions(UUID ownerId) {
   super(
       ownerId,
       30,
       "Fevered Convulsions",
       Rarity.RARE,
       new CardType[] {CardType.ENCHANTMENT},
       "{B}{B}");
   this.expansionSetCode = "TMP";
   this.color.setBlack(true);
   Ability ability =
       new SimpleActivatedAbility(
           Constants.Zone.BATTLEFIELD,
           new AddCountersTargetEffect(CounterType.M1M1.createInstance(1)),
           new ManaCostsImpl("{2}{B}{B}"));
   ability.addTarget(new TargetCreaturePermanent());
   this.addAbility(ability);
 }