mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Implement Relic of Sauron (#10567)
This commit is contained in:
parent
c8564efbb7
commit
55f877c71e
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/r/RelicOfSauron.java
Normal file
54
Mage.Sets/src/mage/cards/r/RelicOfSauron.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardControllerEffect;
|
||||
import mage.abilities.effects.mana.AddManaInAnyCombinationEffect;
|
||||
import mage.abilities.mana.SimpleManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ColoredManaSymbol;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
* @author rullinoiz
|
||||
*/
|
||||
public final class RelicOfSauron extends CardImpl {
|
||||
|
||||
public RelicOfSauron(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
|
||||
|
||||
|
||||
// {T}: Add two mana in any combination of {U}, {B} and/or {R}.
|
||||
this.addAbility(new SimpleManaAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new AddManaInAnyCombinationEffect(2, ColoredManaSymbol.U, ColoredManaSymbol.B, ColoredManaSymbol.R),
|
||||
new TapSourceCost()
|
||||
));
|
||||
|
||||
// {3}, {T}: Draw two cards, then discard a card.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(2),
|
||||
new GenericManaCost(3)
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new DiscardControllerEffect(1));
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
||||
private RelicOfSauron(final RelicOfSauron card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RelicOfSauron copy() {
|
||||
return new RelicOfSauron(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -193,6 +193,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reclamation Sage", 259, Rarity.UNCOMMON, mage.cards.r.ReclamationSage.class));
|
||||
cards.add(new SetCardInfo("Reflecting Pool", 373, Rarity.MYTHIC, mage.cards.r.ReflectingPool.class));
|
||||
cards.add(new SetCardInfo("Rejuvenating Springs", 325, Rarity.RARE, mage.cards.r.RejuvenatingSprings.class));
|
||||
cards.add(new SetCardInfo("Relic of Sauron", 79, Rarity.RARE, mage.cards.r.RelicOfSauron.class));
|
||||
cards.add(new SetCardInfo("Revenge of Ravens", 207, Rarity.UNCOMMON, mage.cards.r.RevengeOfRavens.class));
|
||||
cards.add(new SetCardInfo("Riders of Rohan", 67, Rarity.RARE, mage.cards.r.RidersOfRohan.class));
|
||||
cards.add(new SetCardInfo("Rings of Brighthearth", 352, Rarity.MYTHIC, mage.cards.r.RingsOfBrighthearth.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue