[TMT] Implement Bebop & Rocksteady

This commit is contained in:
theelk801 2025-10-10 16:43:08 -04:00
parent 159933cc8a
commit 747730568e
3 changed files with 49 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -20,6 +20,7 @@ public final class TeenageMutantNinjaTurtles extends ExpansionSet {
this.blockName = "Teenage Mutant Ninja Turtles"; // for sorting in GUI this.blockName = "Teenage Mutant Ninja Turtles"; // for sorting in GUI
this.hasBasicLands = true; 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("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", 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)); cards.add(new SetCardInfo("Forest", 314, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));

View file

@ -20,6 +20,7 @@ sub toCamelCase {
my $string = $_[0]; my $string = $_[0];
$string =~ s/\b([\w']+)\b/ucfirst($1)/ge; $string =~ s/\b([\w']+)\b/ucfirst($1)/ge;
$string =~ s/[-,\s\':.!\/]//g; $string =~ s/[-,\s\':.!\/]//g;
$string =~ s/\&/And/g;
$string; $string;
} }