diff --git a/Mage.Sets/src/mage/cards/h/HonoredKnightCaptain.java b/Mage.Sets/src/mage/cards/h/HonoredKnightCaptain.java new file mode 100644 index 00000000000..a88998a3287 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HonoredKnightCaptain.java @@ -0,0 +1,57 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.filter.common.FilterBySubtypeCard; +import mage.game.permanent.token.HumanSoldierToken; +import mage.target.common.TargetCardInLibrary; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HonoredKnightCaptain extends CardImpl { + + private static final FilterCard filter = new FilterBySubtypeCard(SubType.EQUIPMENT); + + public HonoredKnightCaptain(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ADVISOR); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // When this creature enters, create a 1/1 white Human Soldier creature token. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new HumanSoldierToken()))); + + // {4}{W}{W}, Sacrifice this creature: Search your library for an Equipment card, put it onto the battlefield, then shuffle. + Ability ability = new SimpleActivatedAbility( + new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)), new ManaCostsImpl<>("{4}{W}{W}") + ); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private HonoredKnightCaptain(final HonoredKnightCaptain card) { + super(card); + } + + @Override + public HonoredKnightCaptain copy() { + return new HonoredKnightCaptain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index 90862f204a9..87b4b0dcec6 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -113,6 +113,7 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("Hardlight Containment", 20, Rarity.RARE, mage.cards.h.HardlightContainment.class)); cards.add(new SetCardInfo("Harmonious Grovestrider", 189, Rarity.UNCOMMON, mage.cards.h.HarmoniousGrovestrider.class)); cards.add(new SetCardInfo("Hemosymbic Mite", 190, Rarity.UNCOMMON, mage.cards.h.HemosymbicMite.class)); + cards.add(new SetCardInfo("Honored Knight-Captain", 22, Rarity.UNCOMMON, mage.cards.h.HonoredKnightCaptain.class)); cards.add(new SetCardInfo("Hullcarver", 105, Rarity.COMMON, mage.cards.h.Hullcarver.class)); cards.add(new SetCardInfo("Hylderblade", 106, Rarity.UNCOMMON, mage.cards.h.Hylderblade.class)); cards.add(new SetCardInfo("Illvoi Galeblade", 58, Rarity.COMMON, mage.cards.i.IllvoiGaleblade.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 81ead8131e6..2cd0eeb1b76 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -59119,6 +59119,7 @@ Emergency Eject|Edge of Eternities|14|U|{2}{W}|Instant|||Destroy target nonland Exalted Sunborn|Edge of Eternities|15|M|{3}{W}{W}|Creature - Angel Wizard|4|5|Flying, lifelink$If one or more tokens would be created under your control, twice that many of those tokens are created instead.$Warp {1}{W}| Haliya, Guided by Light|Edge of Eternities|19|R|{2}{W}|Legendary Creature - Human Soldier|3|3|Whenever Haliya or another creature or artifact you control enters, you gain 1 life.$At the beginning of your end step, draw a card if you've gained 3 or more life this turn.$Warp {W}| Hardlight Containment|Edge of Eternities|20|R|{W}|Enchantment - Aura|||Enchant artifact you control$When this Aura enters, exile target creature an opponent controls until this Aura leaves the battlefield.$Enchanted permanent has ward {1}.| +Honored Knight-Captain|Edge of Eternities|22|U|{1}{W}|Creature - Human Advisor Knight|1|1|When this creature enters, create a 1/1 white Human Soldier creature token.${4}{W}{W}, Sacrifice this creature: Search your library for an Equipment card, put it onto the battlefield, then shuffle.| Luxknight Breacher|Edge of Eternities|26|C|{3}{W}|Creature - Human Knight|2|2|This creature enters with a +1/+1 counter on it for each other creature and/or artifact you control.| Pulsar Squadron Ace|Edge of Eternities|28|U|{1}{W}|Creature - Human Pilot|1|2|When this creature enters, look at the top five cards of your library. You may reveal a Spacecraft card from among them and put it into your hand. Put the rest on the bottom of your library in a random order. If you didn't put a card into your hand this way, put a +1/+1 counter on this creature.| Reroute Systems|Edge of Eternities|31|U|{W}|Instant|||Choose one --$* Target artifact or creature gains indestructible until end of turn.$* Reroute Systems deals 2 damage to target tapped creature.|