From c9e30f65ccec60b6ca1202cd6b6ccf9c4a11bc91 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 23:53:28 -0500 Subject: [PATCH] Implemented Hero of the Nyxborn --- .../src/mage/cards/h/HeroOfTheNyxborn.java | 47 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HeroOfTheNyxborn.java diff --git a/Mage.Sets/src/mage/cards/h/HeroOfTheNyxborn.java b/Mage.Sets/src/mage/cards/h/HeroOfTheNyxborn.java new file mode 100644 index 0000000000..67d90e6770 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HeroOfTheNyxborn.java @@ -0,0 +1,47 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +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.game.permanent.token.HumanSoldierToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HeroOfTheNyxborn extends CardImpl { + + public HeroOfTheNyxborn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{1}{R}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When Hero of the Nyxborn enters the battlefield, create a 1/1 white Human Soldier creature token. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new HumanSoldierToken()))); + + // Whenever you cast a spell that targets Hero of the Nyxborn, creatures you control get +1/+0 until end of turn. + this.addAbility(new HeroicAbility( + new BoostControlledEffect(1, 0, Duration.EndOfTurn), false, false + )); + } + + private HeroOfTheNyxborn(final HeroOfTheNyxborn card) { + super(card); + } + + @Override + public HeroOfTheNyxborn copy() { + return new HeroOfTheNyxborn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 5dae0d5248..88a0b074a4 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -109,6 +109,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Heliod's Pilgrim", 20, Rarity.COMMON, mage.cards.h.HeliodsPilgrim.class)); cards.add(new SetCardInfo("Heliod, Sun-Crowned", 18, Rarity.MYTHIC, mage.cards.h.HeliodSunCrowned.class)); cards.add(new SetCardInfo("Hero of the Games", 137, Rarity.COMMON, mage.cards.h.HeroOfTheGames.class)); + cards.add(new SetCardInfo("Hero of the Nyxborn", 219, Rarity.UNCOMMON, mage.cards.h.HeroOfTheNyxborn.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("Heroes of the Revel", 138, Rarity.UNCOMMON, mage.cards.h.HeroesOfTheRevel.class));