Example #1
0
  public QuestForAncientSecrets(UUID ownerId) {
    super(
        ownerId,
        59,
        "Quest for Ancient Secrets",
        Rarity.UNCOMMON,
        new CardType[] {CardType.ENCHANTMENT},
        "{U}");
    this.expansionSetCode = "ZEN";

    // Whenever a card is put into your graveyard from anywhere, you may put a quest counter on
    // Quest for Ancient Secrets.
    this.addAbility(
        new PutCardIntoGraveFromAnywhereAllTriggeredAbility(
            new AddCountersSourceEffect(CounterType.QUEST.createInstance()),
            true,
            TargetController.YOU));

    // Remove five quest counters from Quest for Ancient Secrets and sacrifice it: Target player
    // shuffles his or her graveyard into his or her library.
    Ability ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new QuestForAncientSecretsEffect(),
            new RemoveCountersSourceCost(CounterType.QUEST.createInstance(5)));
    ability.addCost(new SacrificeSourceCost());
    ability.addTarget(new TargetPlayer());
    this.addAbility(ability);
  }
Example #2
0
 public LuminarchAscensionTriggeredAbility() {
   super(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.QUEST.createInstance()), true);
 }