コード例 #1
0
ファイル: Embersmith.java プロジェクト: Nick456/mage
  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);
  }
コード例 #2
0
ファイル: Painsmith.java プロジェクト: gitter-badger/mage
  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);
  }