From 181524a779e3676c18414c5bbff1047b3217ae26 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 23:50:23 -0500 Subject: [PATCH] Implemented Hero of the Games --- .../src/mage/cards/h/HeroOfTheGames.java | 41 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HeroOfTheGames.java diff --git a/Mage.Sets/src/mage/cards/h/HeroOfTheGames.java b/Mage.Sets/src/mage/cards/h/HeroOfTheGames.java new file mode 100644 index 00000000000..1f81bb59c78 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HeroOfTheGames.java @@ -0,0 +1,41 @@ +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 java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HeroOfTheGames extends CardImpl { + + public HeroOfTheGames(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Whenever you cast a spell that targets Hero of the Games, creatures you control get +1/+0 until end of turn. + this.addAbility(new HeroicAbility( + new BoostControlledEffect(1, 0, Duration.EndOfTurn), false, false + )); + } + + private HeroOfTheGames(final HeroOfTheGames card) { + super(card); + } + + @Override + public HeroOfTheGames copy() { + return new HeroOfTheGames(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 0ac835d781e..5dae0d52484 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -108,6 +108,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Heliod's Intervention", 19, Rarity.RARE, mage.cards.h.HeliodsIntervention.class)); 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 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));