From 88e033c1e39e9d71eb18e7593b250ef6d7e075cf Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 18 Sep 2019 19:15:57 -0400 Subject: [PATCH] Implemented Shepherd of the Flock --- .../src/mage/cards/s/ShepherdOfTheFlock.java | 40 +++++++++++++++++++ Mage.Sets/src/mage/sets/ThroneOfEldraine.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/ShepherdOfTheFlock.java diff --git a/Mage.Sets/src/mage/cards/s/ShepherdOfTheFlock.java b/Mage.Sets/src/mage/cards/s/ShepherdOfTheFlock.java new file mode 100644 index 0000000000..37c657ff45 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/ShepherdOfTheFlock.java @@ -0,0 +1,40 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.cards.AdventureCard; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ShepherdOfTheFlock extends AdventureCard { + + public ShepherdOfTheFlock(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.INSTANT}, "{1}{W}", "Usher to Safety", "{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.PEASANT); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // Usher to Safety + // Return target permanent you control to its owner’s hand. + this.getAdventureSpellAbility().addEffect(new ReturnToHandTargetEffect()); + this.getAdventureSpellAbility().addTarget(new TargetControlledPermanent()); + } + + private ShepherdOfTheFlock(final ShepherdOfTheFlock card) { + super(card); + } + + @Override + public ShepherdOfTheFlock copy() { + return new ShepherdOfTheFlock(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java index 6aaf90e1dc..1a2b2c9d75 100644 --- a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java +++ b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java @@ -184,6 +184,7 @@ public final class ThroneOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Searing Barrage", 140, Rarity.COMMON, mage.cards.s.SearingBarrage.class)); cards.add(new SetCardInfo("Seven Dwarves", 141, Rarity.COMMON, mage.cards.s.SevenDwarves.class)); cards.add(new SetCardInfo("Shambling Suit", 230, Rarity.UNCOMMON, mage.cards.s.ShamblingSuit.class)); + cards.add(new SetCardInfo("Shepherd of the Flock", 28, Rarity.UNCOMMON, mage.cards.s.ShepherdOfTheFlock.class)); cards.add(new SetCardInfo("Shimmer Dragon", 317, Rarity.RARE, mage.cards.s.ShimmerDragon.class)); cards.add(new SetCardInfo("Shinechaser", 201, Rarity.UNCOMMON, mage.cards.s.Shinechaser.class)); cards.add(new SetCardInfo("Shining Armor", 29, Rarity.COMMON, mage.cards.s.ShiningArmor.class));