Exemplo n.º 1
0
  public Hankyu(UUID ownerId) {
    super(ownerId, 253, "Hankyu", Rarity.UNCOMMON, new CardType[] {CardType.ARTIFACT}, "{1}");
    this.expansionSetCode = "CHK";
    this.subtype.add("Equipment");

    /* Equipped creature has "{T}: Put an aim counter on Hankyu" and */
    SimpleActivatedAbility ability1 =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD, new HankyuAddCounterEffect(this.getId()), new TapSourceCost());
    ability1.setSourceId(this.getId()); // to know where to put the counters on
    this.addAbility(
        new SimpleStaticAbility(
            Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability1, AttachmentType.EQUIPMENT)));

    /* "{T}, Remove all aim counters from Hankyu: This creature deals
     * damage to target creature or player equal to the number of
     * aim counters removed this way." */
    SimpleActivatedAbility ability2 =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD, new HankyuDealsDamageEffect(), new TapSourceCost());
    ability2.addCost(new HankyuCountersSourceCost(this.getId()));
    ability2.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(
        new SimpleStaticAbility(
            Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability2, AttachmentType.EQUIPMENT)));

    // Equip {4} ({4}: Attach to target creature you control. Equip only as a sorcery.)
    this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(4)));
  }
Exemplo n.º 2
0
  public EmbodimentOfSpring(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.CREATURE}, "{U}");
    this.subtype.add("Elemental");

    this.power = new MageInt(0);
    this.toughness = new MageInt(3);

    // {1}{G}, {T}, Sacrifice Embodiment of Spring: Search your library for a basic land card, put
    // it onto the battlefield tapped, then shuffle your library.
    SimpleActivatedAbility ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new SearchLibraryPutInPlayEffect(
                new TargetCardInLibrary(new FilterBasicLandCard()), true),
            new ManaCostsImpl("{1}{G}"));
    ability.addCost(new TapSourceCost());
    ability.addCost(new SacrificeSourceCost());
    this.addAbility(ability);
  }
Exemplo n.º 3
0
  public MyrTurbine(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.ARTIFACT}, "{5}");

    this.addAbility(
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD, new CreateTokenEffect(new MyrToken()), new TapSourceCost()));
    SimpleActivatedAbility ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filterCard)),
            new TapSourceCost());
    ability.addCost(new TapTargetCost(new TargetControlledPermanent(5, 5, filterMyr, true)));
    this.addAbility(ability);
  }
Exemplo n.º 4
0
  public HelmOfObedience(UUID ownerId) {
    super(
        ownerId, 163, "Helm of Obedience", Rarity.RARE, new CardType[] {CardType.ARTIFACT}, "{4}");
    this.expansionSetCode = "ALL";

    // {X}, {tap}: Target opponent puts cards from the top of his or her library into his or her
    // graveyard until a creature card or X cards are put into that graveyard this way, whichever
    // comes first. If a creature card is put into that graveyard this way, sacrifice Helm of
    // Obedience and put that card onto the battlefield under your control. X can't be 0.
    SimpleActivatedAbility abilitiy =
        new SimpleActivatedAbility(
            Constants.Zone.BATTLEFIELD, new HelmOfObedienceEffect(), new TapSourceCost());
    abilitiy.addCost(new VariableManaCost());
    abilitiy.addTarget(new TargetOpponent());
    this.addAbility(abilitiy);
  }