From 745ec2d4de65e5499fe0d3b4f9a134ecb65fb056 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 27 Jan 2025 11:47:45 -0500 Subject: [PATCH] [DFT] Implement Basri, Tomorrow's Champion --- .../mage/cards/b/BasriTomorrowsChampion.java | 69 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 70 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BasriTomorrowsChampion.java diff --git a/Mage.Sets/src/mage/cards/b/BasriTomorrowsChampion.java b/Mage.Sets/src/mage/cards/b/BasriTomorrowsChampion.java new file mode 100644 index 00000000000..0f7e374d26e --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BasriTomorrowsChampion.java @@ -0,0 +1,69 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.CycleTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExertSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.CyclingAbility; +import mage.abilities.keyword.HexproofAbility; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.game.permanent.token.CatToken2; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BasriTomorrowsChampion extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.CAT, ""); + + public BasriTomorrowsChampion(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // {W}, {T}, Exert Basri: Create a 1/1 white Cat creature token with lifelink. + Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new CatToken2()), new ManaCostsImpl<>("{W}")); + ability.addCost(new TapSourceCost()); + ability.addCost(new ExertSourceCost()); + this.addAbility(ability); + + // Cycling {2}{W} + this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}{W}"))); + + // When you cycle this card, Cats you control gain hexproof and indestructible until end of turn. + ability = new CycleTriggeredAbility(new GainAbilityControlledEffect( + HexproofAbility.getInstance(), Duration.EndOfTurn, filter + ).setText("Cats you control gain hexproof")); + ability.addEffect(new GainAbilityControlledEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn, filter + ).setText("and indestructible until end of turn")); + this.addAbility(ability); + } + + private BasriTomorrowsChampion(final BasriTomorrowsChampion card) { + super(card); + } + + @Override + public BasriTomorrowsChampion copy() { + return new BasriTomorrowsChampion(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index 962067f08d1..f182ca437ad 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -34,6 +34,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Apocalypse Runner", 188, Rarity.UNCOMMON, mage.cards.a.ApocalypseRunner.class)); cards.add(new SetCardInfo("Avishkar Raceway", 249, Rarity.COMMON, mage.cards.a.AvishkarRaceway.class)); cards.add(new SetCardInfo("Back on Track", 76, Rarity.UNCOMMON, mage.cards.b.BackOnTrack.class)); + cards.add(new SetCardInfo("Basri, Tomorrow's Champion", 3, Rarity.RARE, mage.cards.b.BasriTomorrowsChampion.class)); cards.add(new SetCardInfo("Beastrider Vanguard", 154, Rarity.COMMON, mage.cards.b.BeastriderVanguard.class)); cards.add(new SetCardInfo("Bestow Greatness", 155, Rarity.COMMON, mage.cards.b.BestowGreatness.class)); cards.add(new SetCardInfo("Bleachbone Verge", 250, Rarity.RARE, mage.cards.b.BleachboneVerge.class));