[DMU] Implemented Relic of Legends

This commit is contained in:
Evan Kranzler 2022-08-27 10:01:10 -04:00
parent 97f100dc72
commit 4734bdc9d7
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.cards.r;
import mage.abilities.costs.common.TapTargetCost;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SuperType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.TappedPredicate;
import mage.target.common.TargetControlledPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RelicOfLegends extends CardImpl {
private static final FilterControlledPermanent filter
= new FilterControlledPermanent("untapped legendary creature you control");
static {
filter.add(TappedPredicate.UNTAPPED);
filter.add(SuperType.LEGENDARY.getPredicate());
}
public RelicOfLegends(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {T}: Add one mana of any color.
this.addAbility(new AnyColorManaAbility());
// Tap an untapped legendary creature you control: Add one mana of any color.
this.addAbility(new AnyColorManaAbility(new TapTargetCost(new TargetControlledPermanent(filter))));
}
private RelicOfLegends(final RelicOfLegends card) {
super(card);
}
@Override
public RelicOfLegends copy() {
return new RelicOfLegends(this);
}
}

View file

@ -147,6 +147,7 @@ public final class DominariaUnited extends ExpansionSet {
cards.add(new SetCardInfo("Radiant Grove", 253, Rarity.COMMON, mage.cards.r.RadiantGrove.class));
cards.add(new SetCardInfo("Raff, Weatherlight Stalwart", 212, Rarity.UNCOMMON, mage.cards.r.RaffWeatherlightStalwart.class));
cards.add(new SetCardInfo("Ragefire Hellkite", 285, Rarity.RARE, mage.cards.r.RagefireHellkite.class));
cards.add(new SetCardInfo("Relic of Legends", 236, Rarity.UNCOMMON, mage.cards.r.RelicOfLegends.class));
cards.add(new SetCardInfo("Resolute Reinforcements", 29, Rarity.UNCOMMON, mage.cards.r.ResoluteReinforcements.class));
cards.add(new SetCardInfo("Rona's Vortex", 63, Rarity.UNCOMMON, mage.cards.r.RonasVortex.class));
cards.add(new SetCardInfo("Rulik Mons, Warren Chief", 217, Rarity.UNCOMMON, mage.cards.r.RulikMonsWarrenChief.class));