From 84f4a35553b945f16751bd14d76e427f5bb6863a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 28 Sep 2022 08:35:25 -0400 Subject: [PATCH] [UNF] Implemented One-Clown Band --- Mage.Sets/src/mage/cards/o/OneClownBand.java | 49 ++++++++++++++++++++ Mage.Sets/src/mage/sets/Unfinity.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/OneClownBand.java diff --git a/Mage.Sets/src/mage/cards/o/OneClownBand.java b/Mage.Sets/src/mage/cards/o/OneClownBand.java new file mode 100644 index 0000000000..4fb6f80a54 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OneClownBand.java @@ -0,0 +1,49 @@ +package mage.cards.o; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OneClownBand extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.ROBOT, "Robot"); + + public OneClownBand(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.CLOWN); + this.subtype.add(SubType.ROBOT); + this.subtype.add(SubType.BARD); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // {2}{R}: Target Robot gets +2/+0 until end of turn. + Ability ability = new SimpleActivatedAbility( + new BoostTargetEffect(2, 0), new ManaCostsImpl<>("{2}{R}") + ); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + private OneClownBand(final OneClownBand card) { + super(card); + } + + @Override + public OneClownBand copy() { + return new OneClownBand(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Unfinity.java b/Mage.Sets/src/mage/sets/Unfinity.java index d347150d0a..df409e8d12 100644 --- a/Mage.Sets/src/mage/sets/Unfinity.java +++ b/Mage.Sets/src/mage/sets/Unfinity.java @@ -33,6 +33,7 @@ public final class Unfinity extends ExpansionSet { cards.add(new SetCardInfo("Lila, Hospitality Hostess", 170, Rarity.MYTHIC, mage.cards.l.LilaHospitalityHostess.class)); cards.add(new SetCardInfo("Monoxa, Midway Manager", 173, Rarity.UNCOMMON, mage.cards.m.MonoxaMidwayManager.class)); cards.add(new SetCardInfo("Mountain", 238, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("One-Clown Band", 117, Rarity.COMMON, mage.cards.o.OneClownBand.class)); cards.add(new SetCardInfo("Overgrown Tomb", 284, Rarity.RARE, mage.cards.o.OvergrownTomb.class)); cards.add(new SetCardInfo("Plains", 235, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Sacred Foundry", 285, Rarity.RARE, mage.cards.s.SacredFoundry.class));