Implemented Birthing Boughs

This commit is contained in:
Evan Kranzler 2019-05-31 21:31:36 -04:00
parent 86e6134be0
commit 9def59486e
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,39 @@
package mage.cards.b;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.game.permanent.token.ShapeshifterToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BirthingBoughs extends CardImpl {
public BirthingBoughs(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {4}, {T}: Create a 2/2 colorless Shapeshifter creature token with changeling.
Ability ability = new SimpleActivatedAbility(
new CreateTokenEffect(new ShapeshifterToken()), new GenericManaCost(4)
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}
private BirthingBoughs(final BirthingBoughs card) {
super(card);
}
@Override
public BirthingBoughs copy() {
return new BirthingBoughs(this);
}
}

View file

@ -40,6 +40,7 @@ public final class ModernHorizons extends ExpansionSet {
cards.add(new SetCardInfo("Barren Moor", 236, Rarity.UNCOMMON, mage.cards.b.BarrenMoor.class));
cards.add(new SetCardInfo("Battle Screech", 4, Rarity.UNCOMMON, mage.cards.b.BattleScreech.class));
cards.add(new SetCardInfo("Bazaar Trademage", 41, Rarity.RARE, mage.cards.b.BazaarTrademage.class));
cards.add(new SetCardInfo("Birthing Boughs", 221, Rarity.UNCOMMON, mage.cards.b.BirthingBoughs.class));
cards.add(new SetCardInfo("Bladeback Sliver", 119, Rarity.COMMON, mage.cards.b.BladebackSliver.class));
cards.add(new SetCardInfo("Cabal Therapist", 80, Rarity.RARE, mage.cards.c.CabalTherapist.class));
cards.add(new SetCardInfo("Carrion Feeder", 81, Rarity.UNCOMMON, mage.cards.c.CarrionFeeder.class));

View file

@ -0,0 +1,29 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.ChangelingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class ShapeshifterToken extends TokenImpl {
public ShapeshifterToken() {
super("Shapeshifter", "2/2 colorless Shapeshifter creature token with changeling");
cardType.add(CardType.CREATURE);
subtype.add(SubType.SHAPESHIFTER);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(ChangelingAbility.getInstance());
}
public ShapeshifterToken(final ShapeshifterToken token) {
super(token);
}
public ShapeshifterToken copy() {
return new ShapeshifterToken(this);
}
}