From d39d3a06f1b6ca2b1028e782e052e97a45049f89 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 4 Jul 2021 10:32:50 -0400 Subject: [PATCH] [AFR] Implemented Earth-Cult Elemental --- .../src/mage/cards/e/EarthCultElemental.java | 50 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/EarthCultElemental.java diff --git a/Mage.Sets/src/mage/cards/e/EarthCultElemental.java b/Mage.Sets/src/mage/cards/e/EarthCultElemental.java new file mode 100644 index 0000000000..3e252deeb5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EarthCultElemental.java @@ -0,0 +1,50 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.RollDieWithResultTableEffect; +import mage.abilities.effects.common.SacrificeAllEffect; +import mage.abilities.effects.common.SacrificeOpponentsEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EarthCultElemental extends CardImpl { + + public EarthCultElemental(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}{R}"); + + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Siege Monster — When Earth-Cult Elemental enters the battlefield, roll a d20. + RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect(); + this.addAbility(new EntersBattlefieldTriggeredAbility(effect).withFlavorWord("Siege Monster")); + + // 1-9 | Each player sacrifices a permanent. + effect.addTableEntry(1, 9, new SacrificeAllEffect(StaticFilters.FILTER_CONTROLLED_PERMANENT_SHORT_TEXT)); + + // 10-19 | Each opponent sacrifices a permanent. + effect.addTableEntry(10, 19, new SacrificeOpponentsEffect(StaticFilters.FILTER_PERMANENT)); + + // 20 | Each opponent sacrifices two permanents. + effect.addTableEntry(20, 20, new SacrificeOpponentsEffect(2, StaticFilters.FILTER_PERMANENTS)); + } + + private EarthCultElemental(final EarthCultElemental card) { + super(card); + } + + @Override + public EarthCultElemental copy() { + return new EarthCultElemental(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 805ddc7d4b..5924f8f310 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -60,6 +60,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Dungeon Descent", 255, Rarity.RARE, mage.cards.d.DungeonDescent.class)); cards.add(new SetCardInfo("Dungeon Map", 242, Rarity.UNCOMMON, mage.cards.d.DungeonMap.class)); cards.add(new SetCardInfo("Dwarfhold Champion", 14, Rarity.COMMON, mage.cards.d.DwarfholdChampion.class)); + cards.add(new SetCardInfo("Earth-Cult Elemental", 141, Rarity.COMMON, mage.cards.e.EarthCultElemental.class)); cards.add(new SetCardInfo("Ebondeath, Dracolich", 100, Rarity.MYTHIC, mage.cards.e.EbondeathDracolich.class)); cards.add(new SetCardInfo("Eccentric Apprentice", 57, Rarity.UNCOMMON, mage.cards.e.EccentricApprentice.class)); cards.add(new SetCardInfo("Ellywick Tumblestrum", 181, Rarity.MYTHIC, mage.cards.e.EllywickTumblestrum.class));