From 24efd96edba4655304e02800da35d861a384ed73 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 12 Oct 2019 11:22:34 -0400 Subject: [PATCH] Implemented Earthshaker Giant --- .../src/mage/cards/e/EarthshakerGiant.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/GameNight2019.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/EarthshakerGiant.java diff --git a/Mage.Sets/src/mage/cards/e/EarthshakerGiant.java b/Mage.Sets/src/mage/cards/e/EarthshakerGiant.java new file mode 100644 index 00000000000..8c6c2c75216 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EarthshakerGiant.java @@ -0,0 +1,53 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.TrampleAbility; +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 EarthshakerGiant extends CardImpl { + + public EarthshakerGiant(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}"); + + this.subtype.add(SubType.GIANT); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // When Earthshaker Giant enters the battlefield, other creatures you control get +3/+3 and gain trample until end of turn. + Ability ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect( + 3, 3, Duration.EndOfTurn, true + ).setText("other creatures you control get +3/+3")); + ability.addEffect(new GainAbilityControlledEffect( + TrampleAbility.getInstance(), Duration.EndOfTurn, + StaticFilters.FILTER_PERMANENT_CREATURE, true + ).setText("and gain trample until end of turn")); + this.addAbility(ability); + } + + private EarthshakerGiant(final EarthshakerGiant card) { + super(card); + } + + @Override + public EarthshakerGiant copy() { + return new EarthshakerGiant(this); + } +} diff --git a/Mage.Sets/src/mage/sets/GameNight2019.java b/Mage.Sets/src/mage/sets/GameNight2019.java index 17cf2199b4a..d38fb6b4d31 100644 --- a/Mage.Sets/src/mage/sets/GameNight2019.java +++ b/Mage.Sets/src/mage/sets/GameNight2019.java @@ -19,6 +19,7 @@ public final class GameNight2019 extends ExpansionSet { super("Game Night 2019", "GN2", ExpansionSet.buildDate(2019, 11, 15), SetType.SUPPLEMENTAL); this.hasBasicLands = false; // TODO: change when spoiled + cards.add(new SetCardInfo("Earthshaker Giant", 5, Rarity.MYTHIC, mage.cards.e.EarthshakerGiant.class)); cards.add(new SetCardInfo("Highcliff Felidar", 1, Rarity.MYTHIC, mage.cards.h.HighcliffFelidar.class)); cards.add(new SetCardInfo("Sphinx of Enlightenment", 2, Rarity.MYTHIC, mage.cards.s.SphinxOfEnlightenment.class)); }