forked from External/mage
[BIG] Implement Fomori Vault
This commit is contained in:
parent
b9b9889a87
commit
146e093824
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/f/FomoriVault.java
Normal file
47
Mage.Sets/src/mage/cards/f/FomoriVault.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.dynamicvalue.common.ArtifactYouControlCount;
|
||||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
|
||||
import mage.abilities.hint.common.ArtifactYouControlHint;
|
||||
import mage.abilities.mana.ColorlessManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.PutCards;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FomoriVault extends CardImpl {
|
||||
|
||||
public FomoriVault(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
// {T}: Add {1}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {3}, {T}, Discard a card: Look at the top X cards of your library, where X is the number of artifacts you control. Put one of those cards into your hand and the rest on the bottom of your library in random order.
|
||||
Ability ability = new SimpleActivatedAbility(new LookLibraryAndPickControllerEffect(
|
||||
ArtifactYouControlCount.instance, 1, PutCards.HAND, PutCards.BOTTOM_RANDOM
|
||||
), new GenericManaCost(3));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability.addHint(ArtifactYouControlHint.instance));
|
||||
}
|
||||
|
||||
private FomoriVault(final FomoriVault card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FomoriVault copy() {
|
||||
return new FomoriVault(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -25,6 +25,7 @@ public final class TheBigScore extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Bristlebud Farmer", 17, Rarity.MYTHIC, mage.cards.b.BristlebudFarmer.class));
|
||||
cards.add(new SetCardInfo("Collector's Cage", 1, Rarity.MYTHIC, mage.cards.c.CollectorsCage.class));
|
||||
cards.add(new SetCardInfo("Esoteric Duplicator", 5, Rarity.MYTHIC, mage.cards.e.EsotericDuplicator.class));
|
||||
cards.add(new SetCardInfo("Fomori Vault", 29, Rarity.MYTHIC, mage.cards.f.FomoriVault.class));
|
||||
cards.add(new SetCardInfo("Generous Plunderer", 11, Rarity.MYTHIC, mage.cards.g.GenerousPlunderer.class));
|
||||
cards.add(new SetCardInfo("Grand Abolisher", 2, Rarity.MYTHIC, mage.cards.g.GrandAbolisher.class));
|
||||
cards.add(new SetCardInfo("Greed's Gambit", 8, Rarity.MYTHIC, mage.cards.g.GreedsGambit.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue