From ea4c23348c60aed9b046dbdb2b507cbef4ecd652 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sat, 25 Jan 2025 11:15:16 -0500 Subject: [PATCH] [DFT] Implement District Mascot --- .../src/mage/cards/d/DistrictMascot.java | 64 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 65 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DistrictMascot.java diff --git a/Mage.Sets/src/mage/cards/d/DistrictMascot.java b/Mage.Sets/src/mage/cards/d/DistrictMascot.java new file mode 100644 index 00000000000..835d6abe9f4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DistrictMascot.java @@ -0,0 +1,64 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksWhileSaddledTriggeredAbility; +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.RemoveCountersSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.SaddleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.target.common.TargetArtifactPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DistrictMascot extends CardImpl { + + public DistrictMascot(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}"); + + this.subtype.add(SubType.DOG); + this.subtype.add(SubType.MOUNT); + this.power = new MageInt(0); + this.toughness = new MageInt(0); + + // This creature enters with a +1/+1 counter on it. + this.addAbility(new EntersBattlefieldAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), + "with a +1/+1 counter on it" + )); + + // {1}{G}, Remove two +1/+1 counters from this creature: Destroy target artifact. + Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{G}")); + ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(2))); + ability.addTarget(new TargetArtifactPermanent()); + this.addAbility(ability); + + // Whenever this creature attacks while saddled, put a +1/+1 counter on it. + this.addAbility(new AttacksWhileSaddledTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()).setText("put a +1/+1 counter on it") + )); + + // Saddle 1 + this.addAbility(new SaddleAbility(1)); + } + + private DistrictMascot(final DistrictMascot card) { + super(card); + } + + @Override + public DistrictMascot copy() { + return new DistrictMascot(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index a61d200cbba..29bcb79e1b1 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -48,6 +48,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Country Roads", 253, Rarity.UNCOMMON, mage.cards.c.CountryRoads.class)); cards.add(new SetCardInfo("Daretti, Rocketeer Engineer", 120, Rarity.RARE, mage.cards.d.DarettiRocketeerEngineer.class)); cards.add(new SetCardInfo("Dismal Backwater", 254, Rarity.COMMON, mage.cards.d.DismalBackwater.class)); + cards.add(new SetCardInfo("District Mascot", 158, Rarity.RARE, mage.cards.d.DistrictMascot.class)); cards.add(new SetCardInfo("Earthrumbler", 160, Rarity.UNCOMMON, mage.cards.e.Earthrumbler.class)); cards.add(new SetCardInfo("Embalmed Ascendant", 201, Rarity.UNCOMMON, mage.cards.e.EmbalmedAscendant.class)); cards.add(new SetCardInfo("Endrider Catalyzer", 124, Rarity.COMMON, mage.cards.e.EndriderCatalyzer.class));