Esempio n. 1
0
  public Embersmith(UUID ownerId) {
    super(ownerId, 87, "Embersmith", Rarity.UNCOMMON, new CardType[] {CardType.CREATURE}, "{1}{R}");
    this.expansionSetCode = "SOM";
    this.subtype.add("Human");
    this.subtype.add("Artificer");

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

    SpellCastControllerTriggeredAbility ability =
        new SpellCastControllerTriggeredAbility(new EmbersmithEffect(), filter, false);
    ability.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(ability);
  }
Esempio n. 2
0
  public Painsmith(UUID ownerId) {
    super(ownerId, 74, "Painsmith", Rarity.UNCOMMON, new CardType[] {CardType.CREATURE}, "{1}{B}");
    this.expansionSetCode = "SOM";
    this.subtype.add("Human");
    this.subtype.add("Artificer");

    this.power = new MageInt(2);
    this.toughness = new MageInt(1);

    FilterArtifactSpell filter = new FilterArtifactSpell("an artifact spell");
    SpellCastControllerTriggeredAbility ability =
        new SpellCastControllerTriggeredAbility(
            new BoostTargetEffect(2, 0, Duration.EndOfTurn), filter, true);
    ability.addEffect(
        new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn));
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }