예제 #1
0
  public BoseijuWhoSheltersAll(UUID ownerId) {
    super(
        ownerId, 273, "Boseiju, Who Shelters All", Rarity.RARE, new CardType[] {CardType.LAND}, "");
    this.expansionSetCode = "CHK";
    this.supertype.add("Legendary");

    // Boseiju, Who Shelters All enters the battlefield tapped.
    this.addAbility(new EntersBattlefieldTappedAbility());

    // {tap}, Pay 2 life: Add {C} to your mana pool. If that mana is spent on an instant or sorcery
    // spell, that spell can't be countered by spells or abilities.
    Mana mana = new Mana(0, 0, 0, 0, 0, 0, 0, 1);
    mana.setFlag(true); // used to indicate this mana ability
    SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, mana, new TapSourceCost());
    ability.addCost(new PayLifeCost(2));
    ability
        .getEffects()
        .get(0)
        .setText(
            "Add {C} to your mana pool. If that mana is spent on an instant or sorcery spell, that spell can't be countered by spells or abilities");
    this.addAbility(ability);

    this.addAbility(
        new SimpleStaticAbility(Zone.BATTLEFIELD, new BoseijuWhoSheltersAllCantCounterEffect()),
        new BoseijuWhoSheltersAllWatcher());
  }
예제 #2
0
  public SunkenRuins(UUID ownerId) {
    super(ownerId, 280, "Sunken Ruins", Rarity.RARE, new CardType[] {CardType.LAND}, "");
    this.expansionSetCode = "SHM";

    // {tap}: Add {C} to your mana pool.
    this.addAbility(new ColorlessManaAbility());
    // {UB}, {tap}: Add {U}{U}, {U}{B}, or {B}{B} to your mana pool.
    SimpleManaAbility ability =
        new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana(2), new ManaCostsImpl("{U/B}"));
    ability.addCost(new TapSourceCost());
    this.addAbility(ability);

    ability =
        new SimpleManaAbility(
            Zone.BATTLEFIELD, new Mana(0, 0, 1, 0, 1, 0, 0), new ManaCostsImpl("{U/B}"));
    ability.addCost(new TapSourceCost());
    this.addAbility(ability);

    ability =
        new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana(2), new ManaCostsImpl("{U/B}"));
    ability.addCost(new TapSourceCost());
    this.addAbility(ability);
  }