From 991200256a4a0483d2549eaebabece77e5c34649 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 9 Jan 2020 08:51:42 -0500 Subject: [PATCH] Implemented Heroes of the Revel --- .../src/mage/cards/h/HeroesOfTheRevel.java | 44 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HeroesOfTheRevel.java diff --git a/Mage.Sets/src/mage/cards/h/HeroesOfTheRevel.java b/Mage.Sets/src/mage/cards/h/HeroesOfTheRevel.java new file mode 100644 index 0000000000..52271b35e0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HeroesOfTheRevel.java @@ -0,0 +1,44 @@ +package mage.cards.h; + +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.SatyrCantBlockToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HeroesOfTheRevel extends CardImpl { + + public HeroesOfTheRevel(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}"); + + this.subtype.add(SubType.SATYR); + this.subtype.add(SubType.SOLDIER); + + // When Heroes of the Revel enters the battlefield, create a 1/1 red Satyr creature token with "This creature can't block." + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SatyrCantBlockToken()))); + + // Whenever you cast a spell that targets Heroes of the Revel, creatures you control get +1/+0 until end of turn. + this.addAbility(new HeroicAbility( + new BoostControlledEffect(1, 0, Duration.EndOfTurn), false, false + )); + } + + private HeroesOfTheRevel(final HeroesOfTheRevel card) { + super(card); + } + + @Override + public HeroesOfTheRevel copy() { + return new HeroesOfTheRevel(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index fbbb6bbe14..d59a6301cb 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -82,6 +82,7 @@ public final class TherosBeyondDeath extends ExpansionSet { 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("Heroes of the Revel", 138, Rarity.UNCOMMON, mage.cards.h.HeroesOfTheRevel.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)); cards.add(new SetCardInfo("Indomitable Will", 25, Rarity.COMMON, mage.cards.i.IndomitableWill.class));