mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[DMU] Implemented Silverback Elder
This commit is contained in:
parent
813ef4c92a
commit
01669c2b80
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/s/SilverbackElder.java
Normal file
57
Mage.Sets/src/mage/cards/s/SilverbackElder.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue