[BLB] Implement Bonebinder Orator

This commit is contained in:
theelk801 2024-07-20 15:47:50 -04:00
parent aeb060d7c8
commit 5ae583180d
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.b;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.ExileSourceFromGraveCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.filter.common.FilterCreatureCard;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BonebindOrator extends CardImpl {
private static final FilterCard filter = new FilterCreatureCard("another target creature card from your graveyard");
static {
filter.add(AnotherPredicate.instance);
}
public BonebindOrator(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.SQUIRREL);
this.subtype.add(SubType.WARLOCK);
this.subtype.add(SubType.BARD);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// {3}{B}, Exile Bonebind Orator from your graveyard: Return another target creature card from your graveyard to your hand.
Ability ability = new SimpleActivatedAbility(
Zone.GRAVEYARD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl<>("{3}{B}")
);
ability.addCost(new ExileSourceFromGraveCost());
ability.addTarget(new TargetCardInYourGraveyard(filter));
this.addAbility(ability);
}
private BonebindOrator(final BonebindOrator card) {
super(card);
}
@Override
public BonebindOrator copy() {
return new BonebindOrator(this);
}
}

View file

@ -34,6 +34,7 @@ public final class Bloomburrow extends ExpansionSet {
cards.add(new SetCardInfo("Bellowing Crier", 42, Rarity.COMMON, mage.cards.b.BellowingCrier.class));
cards.add(new SetCardInfo("Blooming Blast", 126, Rarity.UNCOMMON, mage.cards.b.BloomingBlast.class));
cards.add(new SetCardInfo("Blossoming Sands", 396, Rarity.COMMON, mage.cards.b.BlossomingSands.class));
cards.add(new SetCardInfo("Bonebind Orator", 84, Rarity.COMMON, mage.cards.b.BonebindOrator.class));
cards.add(new SetCardInfo("Bonecache Overseer", 85, Rarity.UNCOMMON, mage.cards.b.BonecacheOverseer.class));
cards.add(new SetCardInfo("Brambleguard Captain", 127, Rarity.UNCOMMON, mage.cards.b.BrambleguardCaptain.class));
cards.add(new SetCardInfo("Brambleguard Veteran", 165, Rarity.UNCOMMON, mage.cards.b.BrambleguardVeteran.class));