Beispiel #1
0
  public FlailingOgre(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.CREATURE}, "{2}{R}");
    this.subtype.add("Ogre");
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    // {1}: Flailing Ogre gets +1/+1 until end of turn. Any player may activate this ability.
    SimpleActivatedAbility ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new BoostSourceEffect(1, 1, Duration.EndOfTurn),
            new ManaCostsImpl("{1}"));
    ability.setMayActivate(TargetController.ANY);
    ability.addEffect(new InfoEffect("Any player may activate this ability"));
    this.addAbility(ability);
    // {1}: Flailing Ogre gets -1/-1 until end of turn. Any player may activate this ability.
    ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new BoostSourceEffect(-1, -1, Duration.EndOfTurn),
            new ManaCostsImpl("{1}"));
    ability.setMayActivate(TargetController.ANY);
    ability.addEffect(new InfoEffect("Any player may activate this ability"));
    this.addAbility(ability);
  }
Beispiel #2
0
  public FeralHydra(UUID ownerId) {
    super(ownerId, 131, "Feral Hydra", Rarity.RARE, new CardType[] {CardType.CREATURE}, "{X}{G}");
    this.expansionSetCode = "ALA";
    this.subtype.add("Hydra");
    this.subtype.add("Beast");

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

    // Feral Hydra enters the battlefield with X +1/+1 counters on it.
    this.addAbility(new EntersBattlefieldAbility(new FeralHydraEffect(), true));
    // {3}: Put a +1/+1 counter on Feral Hydra. Any player may activate this ability.
    SimpleActivatedAbility ability =
        new SimpleActivatedAbility(
            Zone.BATTLEFIELD,
            new AddCountersSourceEffect(CounterType.P1P1.createInstance()),
            new ManaCostsImpl("{3}"));
    ability.setMayActivate(TargetController.ANY);
    ability.addEffect(new InfoEffect("Any player may activate this ability"));
    this.addAbility(ability);
  }