diff --git a/Mage.Sets/src/mage/cards/s/SilverbackElder.java b/Mage.Sets/src/mage/cards/s/SilverbackElder.java new file mode 100644 index 0000000000..d3fc8e35bf --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SilverbackElder.java @@ -0,0 +1,57 @@ +package mage.cards.s; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.Mode; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; +import mage.abilities.effects.common.LookLibraryControllerEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.TargetPermanent; + +/** + * + * @author weirddan455 + */ +public final class SilverbackElder extends CardImpl { + + public SilverbackElder(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}{G}"); + + this.subtype.add(SubType.APE); + this.subtype.add(SubType.SHAMAN); + this.power = new MageInt(5); + this.toughness = new MageInt(7); + + // Whenever you cast a creature spell, choose one -- + // * Destroy target artifact or enchantment. + Ability ability = new SpellCastControllerTriggeredAbility(new DestroyTargetEffect(), StaticFilters.FILTER_SPELL_A_CREATURE, false); + ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT)); + + // * Look at the top five cards of your library. You may put a land card from among them onto the battlefield tapped. Put the rest on the bottom of your library in a random order. + ability.addMode(new Mode(new LookLibraryAndPickControllerEffect( + 5, 1, StaticFilters.FILTER_CARD_LAND, + LookLibraryControllerEffect.PutCards.BATTLEFIELD_TAPPED, LookLibraryControllerEffect.PutCards.BOTTOM_RANDOM + ))); + + // * You gain 4 life. + ability.addMode(new Mode(new GainLifeEffect(4))); + this.addAbility(ability); + } + + private SilverbackElder(final SilverbackElder card) { + super(card); + } + + @Override + public SilverbackElder copy() { + return new SilverbackElder(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index 14787a8c1c..ae7ebe24fb 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -184,6 +184,7 @@ public final class DominariaUnited extends ExpansionSet { cards.add(new SetCardInfo("Shivan Devastator", 143, Rarity.MYTHIC, mage.cards.s.ShivanDevastator.class)); cards.add(new SetCardInfo("Shivan Reef", 255, Rarity.RARE, mage.cards.s.ShivanReef.class)); cards.add(new SetCardInfo("Shore Up", 64, Rarity.COMMON, mage.cards.s.ShoreUp.class)); + cards.add(new SetCardInfo("Silverback Elder", 177, Rarity.MYTHIC, mage.cards.s.SilverbackElder.class)); cards.add(new SetCardInfo("Slimefoot's Survey", 178, Rarity.UNCOMMON, mage.cards.s.SlimefootsSurvey.class)); cards.add(new SetCardInfo("Smash to Dust", 144, Rarity.COMMON, mage.cards.s.SmashToDust.class)); cards.add(new SetCardInfo("Snarespinner", 179, Rarity.COMMON, mage.cards.s.Snarespinner.class));