diff --git a/Mage.Sets/src/mage/cards/b/BebopAndRocksteady.java b/Mage.Sets/src/mage/cards/b/BebopAndRocksteady.java new file mode 100644 index 00000000000..198f5769582 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BebopAndRocksteady.java @@ -0,0 +1,47 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.common.AttacksOrBlocksTriggeredAbility; +import mage.abilities.costs.common.DiscardCardCost; +import mage.abilities.effects.common.DoIfCostPaid; +import mage.abilities.effects.common.SacrificeControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BebopAndRocksteady extends CardImpl { + + public BebopAndRocksteady(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B/G}{B/G}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.BOAR); + this.subtype.add(SubType.RHINO); + this.subtype.add(SubType.MUTANT); + this.power = new MageInt(7); + this.toughness = new MageInt(5); + + // Whenever Bebop & Rocksteady attacks or blocks, sacrifice a permanent unless you discard a card. + this.addAbility(new AttacksOrBlocksTriggeredAbility(new DoIfCostPaid( + null, new SacrificeControllerEffect(StaticFilters.FILTER_PERMANENT, 1, null), + new DiscardCardCost(), false), false + )); + } + + private BebopAndRocksteady(final BebopAndRocksteady card) { + super(card); + } + + @Override + public BebopAndRocksteady copy() { + return new BebopAndRocksteady(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java b/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java index 6869ab8e888..1c59fc4c485 100644 --- a/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java +++ b/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java @@ -20,6 +20,7 @@ public final class TeenageMutantNinjaTurtles extends ExpansionSet { this.blockName = "Teenage Mutant Ninja Turtles"; // for sorting in GUI this.hasBasicLands = true; + cards.add(new SetCardInfo("Bebop & Rocksteady", 140, Rarity.RARE, mage.cards.b.BebopAndRocksteady.class)); cards.add(new SetCardInfo("Casey Jones, Jury-Rig Justiciar", 87, Rarity.UNCOMMON, mage.cards.c.CaseyJonesJuryRigJusticiar.class)); cards.add(new SetCardInfo("Forest", 257, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Forest", 314, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); diff --git a/Utils/gen-card.pl b/Utils/gen-card.pl index 84f79af28cb..7dfe18852cc 100755 --- a/Utils/gen-card.pl +++ b/Utils/gen-card.pl @@ -20,6 +20,7 @@ sub toCamelCase { my $string = $_[0]; $string =~ s/\b([\w']+)\b/ucfirst($1)/ge; $string =~ s/[-,\s\':.!\/]//g; + $string =~ s/\&/And/g; $string; }