diff --git a/Mage.Sets/src/mage/cards/b/BonnyPallClearcutter.java b/Mage.Sets/src/mage/cards/b/BonnyPallClearcutter.java new file mode 100644 index 00000000000..a4c40acd8a9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BonnyPallClearcutter.java @@ -0,0 +1,55 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksWithCreaturesTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.PutCardFromHandOrGraveyardOntoBattlefieldEffect; +import mage.abilities.keyword.ReachAbility; +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 mage.game.permanent.token.BeauToken; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class BonnyPallClearcutter extends CardImpl { + + public BonnyPallClearcutter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{U}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.GIANT); + this.subtype.add(SubType.SCOUT); + this.power = new MageInt(6); + this.toughness = new MageInt(5); + + // Reach + this.addAbility(ReachAbility.getInstance()); + + // When Bonny Pall, Clearcutter enters the battlefield, create Beau, a legendary blue Ox creature token with "This creature's power and toughness are each equal to the number of lands you control." + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new BeauToken()))); + + // Whenever you attack, draw a card, then you may put a land card from your hand or graveyard onto the battlefield. + Ability ability = new AttacksWithCreaturesTriggeredAbility(new DrawCardSourceControllerEffect(1), 1); + ability.addEffect(new PutCardFromHandOrGraveyardOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A, false).concatBy(", then")); + this.addAbility(ability); + } + + private BonnyPallClearcutter(final BonnyPallClearcutter card) { + super(card); + } + + @Override + public BonnyPallClearcutter copy() { + return new BonnyPallClearcutter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java index b2f089e28ba..8d74d50391d 100644 --- a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java +++ b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java @@ -40,6 +40,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet { cards.add(new SetCardInfo("Blood Hustler", 80, Rarity.UNCOMMON, mage.cards.b.BloodHustler.class)); cards.add(new SetCardInfo("Blooming Marsh", 266, Rarity.RARE, mage.cards.b.BloomingMarsh.class)); cards.add(new SetCardInfo("Boneyard Desecrator", 81, Rarity.COMMON, mage.cards.b.BoneyardDesecrator.class)); + cards.add(new SetCardInfo("Bonny Pall, Clearcutter", 196, Rarity.RARE, mage.cards.b.BonnyPallClearcutter.class)); cards.add(new SetCardInfo("Boom Box", 241, Rarity.UNCOMMON, mage.cards.b.BoomBox.class)); cards.add(new SetCardInfo("Botanical Sanctum", 267, Rarity.RARE, mage.cards.b.BotanicalSanctum.class)); cards.add(new SetCardInfo("Bounding Felidar", 5, Rarity.UNCOMMON, mage.cards.b.BoundingFelidar.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/BeauToken.java b/Mage/src/main/java/mage/game/permanent/token/BeauToken.java new file mode 100644 index 00000000000..674680aef65 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/BeauToken.java @@ -0,0 +1,41 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.common.LandsYouControlCount; +import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; + +/** + * @author Susucr + */ +public final class BeauToken extends TokenImpl { + + public BeauToken() { + super("Beau", "Beau, a legendary blue Ox creature token with " + + "\"This creature's power and toughness are each equal to the number of lands you control.\""); + this.cardType.add(CardType.CREATURE); + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.OX); + + this.color.setBlue(true); + + this.power = new MageInt(0); + this.toughness = new MageInt(0); + this.addAbility(new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect( + LandsYouControlCount.instance, Duration.EndOfGame + ).setText("this creature's power and toughness are each equal to the number of lands you control"))); + } + + private BeauToken(final BeauToken token) { + super(token); + } + + public BeauToken copy() { + return new BeauToken(this); + } + +}