Exemple #1
0
  public BloodhallPriest(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.CREATURE}, "{2}{B}{R}");
    this.subtype.add("Vampire");
    this.subtype.add("Cleric");
    this.power = new MageInt(4);
    this.toughness = new MageInt(4);

    // Whenever Bloodhall Priest enters the battlefield or attacks, if you have no cards in hand,
    // Bloodhall Priest deals 2 damage to target creature or player.
    this.addAbility(
        new ConditionalTriggeredAbility(
            new BloodhallPriestAbility(), HellbentCondition.getInstance(), null));

    // Madness {1}{B}{R}
    this.addAbility(new MadnessAbility(this, new ManaCostsImpl("{1}{B}{R}")));
  }
Exemple #2
0
  public TasteForMayhem(UUID ownerId, CardSetInfo setInfo) {
    super(ownerId, setInfo, new CardType[] {CardType.ENCHANTMENT}, "{R}");
    this.subtype.add("Aura");

    // Enchant creature
    TargetPermanent auraTarget = new TargetCreaturePermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);

    // Enchanted creature gets +2/+0.
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 0)));

    // Hellbent - Enchanted creature gets an additional +2/+0 as long as you have no cards in hand.
    this.addAbility(
        new SimpleStaticAbility(
            Zone.BATTLEFIELD,
            new ConditionalContinuousEffect(
                new BoostEnchantedEffect(2, 0),
                HellbentCondition.getInstance(),
                "<i>Hellbent</i> &mdash; Enchanted creature gets an additional +2/+0 as long as you have no cards in hand")));
  }