From 07c1407709b210ebd08dd33473197b8a9c4ba17c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 23:44:53 -0500 Subject: [PATCH] Implemented Captivating Unicorn --- .../src/mage/cards/c/CaptivatingUnicorn.java | 41 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CaptivatingUnicorn.java diff --git a/Mage.Sets/src/mage/cards/c/CaptivatingUnicorn.java b/Mage.Sets/src/mage/cards/c/CaptivatingUnicorn.java new file mode 100644 index 0000000000..67c0aa0c12 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CaptivatingUnicorn.java @@ -0,0 +1,41 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.TapTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetOpponentsCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CaptivatingUnicorn extends CardImpl { + + public CaptivatingUnicorn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}"); + + this.subtype.add(SubType.UNICORN); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Constellation — Whenever an enchantment enters the battlefield under your control, tap target creature an opponent controls. + Ability ability = new EntersBattlefieldTriggeredAbility(new TapTargetEffect(), false, false); + ability.addTarget(new TargetOpponentsCreaturePermanent()); + this.addAbility(ability); + } + + private CaptivatingUnicorn(final CaptivatingUnicorn card) { + super(card); + } + + @Override + public CaptivatingUnicorn copy() { + return new CaptivatingUnicorn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 6e0fb87c29..262c8320bc 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -48,6 +48,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Brine Giant", 44, Rarity.COMMON, mage.cards.b.BrineGiant.class)); cards.add(new SetCardInfo("Bronze Sword", 232, Rarity.COMMON, mage.cards.b.BronzeSword.class)); cards.add(new SetCardInfo("Callaphe, Beloved of the Sea", 45, Rarity.UNCOMMON, mage.cards.c.CallapheBelovedOfTheSea.class)); + cards.add(new SetCardInfo("Captivating Unicorn", 6, Rarity.COMMON, mage.cards.c.CaptivatingUnicorn.class)); cards.add(new SetCardInfo("Careless Celebrant", 129, Rarity.UNCOMMON, mage.cards.c.CarelessCelebrant.class)); cards.add(new SetCardInfo("Chain to Memory", 46, Rarity.COMMON, mage.cards.c.ChainToMemory.class)); cards.add(new SetCardInfo("Chainweb Aracnir", 167, Rarity.UNCOMMON, mage.cards.c.ChainwebAracnir.class));