From 0e44fbad9af7a692430f1856192159ce986b461b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 8 Jan 2020 18:06:34 -0500 Subject: [PATCH] Implemented Hero of the Pride --- .../src/mage/cards/h/HeroOfThePride.java | 42 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HeroOfThePride.java diff --git a/Mage.Sets/src/mage/cards/h/HeroOfThePride.java b/Mage.Sets/src/mage/cards/h/HeroOfThePride.java new file mode 100644 index 0000000000..90e74fe2e4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HeroOfThePride.java @@ -0,0 +1,42 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.keyword.HeroicAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HeroOfThePride extends CardImpl { + + public HeroOfThePride(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}"); + + this.subtype.add(SubType.CAT); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever you cast a spell that targets Hero of the Pride, creatures you control get +1/+0 until end of turn. + this.addAbility(new HeroicAbility(new BoostControlledEffect( + 1, 0, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES + ), false, false)); + } + + private HeroOfThePride(final HeroOfThePride card) { + super(card); + } + + @Override + public HeroOfThePride copy() { + return new HeroOfThePride(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 6a65592225..b4bda0716b 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -74,6 +74,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Gray Merchant of Asphodel", 99, Rarity.UNCOMMON, mage.cards.g.GrayMerchantOfAsphodel.class)); cards.add(new SetCardInfo("Haktos the Unscarred", 218, Rarity.RARE, mage.cards.h.HaktosTheUnscarred.class)); cards.add(new SetCardInfo("Heliod, Sun-Crowned", 18, Rarity.MYTHIC, mage.cards.h.HeliodSunCrowned.class)); + cards.add(new SetCardInfo("Hero of the Pride", 22, Rarity.COMMON, mage.cards.h.HeroOfThePride.class)); cards.add(new SetCardInfo("Hero of the Winds", 23, Rarity.UNCOMMON, mage.cards.h.HeroOfTheWinds.class)); cards.add(new SetCardInfo("Ichthyomorphosis", 51, Rarity.COMMON, mage.cards.i.Ichthyomorphosis.class)); cards.add(new SetCardInfo("Idyllic Tutor", 24, Rarity.RARE, mage.cards.i.IdyllicTutor.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 7dc6fb2e95..4fa6aa9f88 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -36444,6 +36444,7 @@ Daxos, Blessed by the Sun|Theros Beyond Death|9|U|{W}{W}|Legendary Enchantment C Eidolon of Obstruction|Theros Beyond Death|12|R|{1}{W}|Enchantment Creature - Spirit|2|1|First strike$Loyalty abilities of planeswalkers your opponents control costs {1} more to activate.| Elspeth, Sun's Nemesis|Theros Beyond Death|14|M|{2}{W}{W}|Legendary Planeswalker - Elspeth|5|−1: Up to two target creatures you control each get +2/+1 until end of turn.$−2: Create two 1/1 white Human Soldier creature tokens.$−3: You gain 5 life.$Escape—{4}{W}{W}, Exile four other cards from your graveyard.| Heliod, Sun-Crowned|Theros Beyond Death|18|M|{2}{W}|Legendary Enchantment Creature - God|5|5|Indestructible$As long as your devotion to white is less than five, Heliod isn't a creature.$Whenever you gain life, put a +1/+1 counter on target creature or enchantment you control.${1}{W}: Another target creature gains lifelink until end of turn.| +Hero of the Pride|Theros Beyond Death|22|C|{1}{W}|Creature - Cat Soldier|2|2|Whenever you cast a spell that targets Hero of the Pride, creatures you control get +1/+0 until end of turn.| Hero of the Winds|Theros Beyond Death|23|U|{3}{W}|Creature - Human Soldier|1|4|Flying$Whenever you cast a spell that targets Hero of the Winds, creatures you control get +1/+0 until end of turn.| Idyllic Tutor|Theros Beyond Death|24|R|{2}{W}|Sorcery|||Search your library for an enchantment card, reveal it, and put it into your hand. Then shuffle your library.| Indomitable Will|Theros Beyond Death|25|C|{1}{W}|Enchantment - Aura|||Flash$Enchant creature$Enchanted creature gets +1/+2.|