From c448612c9780dc2daba7eb005785f154cd3db7d3 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 18 Jul 2024 10:34:54 -0400 Subject: [PATCH] [BLB] Implement Tangle Tumbler --- Mage.Sets/src/mage/cards/t/TangleTumbler.java | 71 +++++++++++++++++++ Mage.Sets/src/mage/sets/Bloomburrow.java | 1 + 2 files changed, 72 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TangleTumbler.java diff --git a/Mage.Sets/src/mage/cards/t/TangleTumbler.java b/Mage.Sets/src/mage/cards/t/TangleTumbler.java new file mode 100644 index 00000000000..b532854164f --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TangleTumbler.java @@ -0,0 +1,71 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.common.TapTargetCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.continuous.AddCardTypeSourceEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.permanent.TappedPredicate; +import mage.filter.predicate.permanent.TokenPredicate; +import mage.target.common.TargetControlledPermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TangleTumbler extends CardImpl { + + private static final FilterControlledPermanent filter + = new FilterControlledPermanent("untapped tokens you control"); + + static { + filter.add(TappedPredicate.UNTAPPED); + filter.add(TokenPredicate.TRUE); + } + + public TangleTumbler(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); + + this.subtype.add(SubType.VEHICLE); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Vigilance + this.addAbility(VigilanceAbility.getInstance()); + + // {3}, {T}: Put a +1/+1 counter on target creature. + Ability ability = new SimpleActivatedAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new GenericManaCost(3) + ); + ability.addCost(new TapSourceCost()); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + + // Tap two untapped tokens you control: Tangle Tumbler becomes an artifact creature until end of turn. + this.addAbility(new SimpleActivatedAbility(new AddCardTypeSourceEffect( + Duration.EndOfTurn, CardType.ARTIFACT, CardType.CREATURE + ), new TapTargetCost(new TargetControlledPermanent(2, filter)))); + } + + private TangleTumbler(final TangleTumbler card) { + super(card); + } + + @Override + public TangleTumbler copy() { + return new TangleTumbler(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Bloomburrow.java b/Mage.Sets/src/mage/sets/Bloomburrow.java index 5b48a32e5d3..ea8b2351e65 100644 --- a/Mage.Sets/src/mage/sets/Bloomburrow.java +++ b/Mage.Sets/src/mage/sets/Bloomburrow.java @@ -178,6 +178,7 @@ public final class Bloomburrow extends ExpansionSet { cards.add(new SetCardInfo("Swiftwater Cliffs", 397, Rarity.COMMON, mage.cards.s.SwiftwaterCliffs.class)); cards.add(new SetCardInfo("Sword of Vengeance", 395, Rarity.RARE, mage.cards.s.SwordOfVengeance.class)); cards.add(new SetCardInfo("Take Out the Trash", 156, Rarity.COMMON, mage.cards.t.TakeOutTheTrash.class)); + cards.add(new SetCardInfo("Tangle Tumbler", 250, Rarity.UNCOMMON, mage.cards.t.TangleTumbler.class)); cards.add(new SetCardInfo("Teapot Slinger", 157, Rarity.UNCOMMON, mage.cards.t.TeapotSlinger.class)); cards.add(new SetCardInfo("Tempest Angler", 235, Rarity.COMMON, mage.cards.t.TempestAngler.class)); cards.add(new SetCardInfo("Tender Wildguide", 196, Rarity.RARE, mage.cards.t.TenderWildguide.class));