Exemplo n.º 1
0
  public KalemneDiscipleOfIroas(UUID ownerId) {
    super(
        ownerId,
        999,
        "Kalemne, Disciple of Iroas",
        Rarity.MYTHIC,
        new CardType[] {CardType.CREATURE},
        "{2}{R}{W}");
    this.expansionSetCode = "C15";
    this.supertype.add("Legendary");
    this.subtype.add("Giant");
    this.subtype.add("Soldier");
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    // Double strike
    this.addAbility(DoubleStrikeAbility.getInstance());

    // Vigilance
    this.addAbility(VigilanceAbility.getInstance());

    // Whenever you cast a creature spell with converted mana cost 5 or greater, you get an
    // experience counter.
    Effect effect =
        new AddCountersControllerEffect(CounterType.EXPERIENCE.createInstance(1), false);
    effect.setText("you get an experience counter");
    Ability ability = new SpellCastControllerTriggeredAbility(effect, filterSpell, false);
    this.addAbility(ability);

    // Kalemne, Disciple of Iroas gets +1/+1 for each experience counter you have.
    DynamicValue value = new SourceControllerExperienceCountersCount();
    this.addAbility(
        new SimpleStaticAbility(
            Zone.BATTLEFIELD, new BoostSourceEffect(value, value, Duration.WhileOnBattlefield)));
  }
Exemplo n.º 2
0
  public EzuriClawOfProgress(UUID ownerId) {
    super(
        ownerId,
        44,
        "Ezuri, Claw of Progress",
        Rarity.MYTHIC,
        new CardType[] {CardType.CREATURE},
        "{2}{G}{U}");
    this.expansionSetCode = "C15";
    this.supertype.add("Legendary");
    this.subtype.add("Elf");
    this.subtype.add("Warrior");
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    // Whenever a creature with power 2 or less enters the battlefield under your control, you get
    // an experience counter.
    this.addAbility(
        new EntersBattlefieldAllTriggeredAbility(
            Zone.BATTLEFIELD,
            new AddCountersControllerEffect(CounterType.EXPERIENCE.createInstance(1), false),
            filter,
            false,
            rule,
            true));

    // At the beginning of combat on your turn, put X +1/+1 counters on another target creature you
    // control, where X is the number of experience counters you have.
    Ability ability =
        new BeginningOfCombatTriggeredAbility(
            new EzuriClawOfProgressEffect(), TargetController.YOU, false);
    ability.addTarget(new TargetControlledCreaturePermanent(filter2));
    this.addAbility(ability);
  }