[KHM] Implemented Tyrite Sanctum

This commit is contained in:
Evan Kranzler 2021-01-17 10:28:37 -05:00
parent 68f88c84a2
commit 01f7306d4b
2 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,71 @@
package mage.cards.t;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.continuous.AddCardSubTypeTargetEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TyriteSanctum extends CardImpl {
private static final FilterPermanent filter = new FilterCreaturePermanent("legendary creature");
private static final FilterPermanent filter2 = new FilterPermanent(SubType.GOD, "God");
static {
filter.add(SuperType.LEGENDARY.getPredicate());
}
public TyriteSanctum(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
// {T}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {2}, {T}: Target legendary creature becomes a God in addition to its other types. Put a +1/+1 counter on it.
Ability ability = new SimpleActivatedAbility(new AddCardSubTypeTargetEffect(
SubType.GOD, Duration.Custom
).setText("target legendary creature becomes a God in addition to its other types."), new GenericManaCost(2));
ability.addCost(new TapSourceCost());
ability.addEffect(new AddCountersTargetEffect(
CounterType.P1P1.createInstance()
).setText("Put a +1/+1 counter on it"));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
// {4}, {T}, Sacrifice Tyrite Sanctum: Put an indestructible counter on target God.
ability = new SimpleActivatedAbility(new AddCountersTargetEffect(
CounterType.INDESTRUCTIBLE.createInstance()
), new GenericManaCost(4));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(filter2));
this.addAbility(ability);
}
private TyriteSanctum(final TyriteSanctum card) {
super(card);
}
@Override
public TyriteSanctum copy() {
return new TyriteSanctum(this);
}
}

View file

@ -256,6 +256,7 @@ public final class Kaldheim extends ExpansionSet {
cards.add(new SetCardInfo("Tormentor's Helm", 155, Rarity.COMMON, mage.cards.t.TormentorsHelm.class)); cards.add(new SetCardInfo("Tormentor's Helm", 155, Rarity.COMMON, mage.cards.t.TormentorsHelm.class));
cards.add(new SetCardInfo("Toski, Bearer of Secrets", 197, Rarity.RARE, mage.cards.t.ToskiBearerOfSecrets.class)); cards.add(new SetCardInfo("Toski, Bearer of Secrets", 197, Rarity.RARE, mage.cards.t.ToskiBearerOfSecrets.class));
cards.add(new SetCardInfo("Tuskeri Firewalker", 157, Rarity.COMMON, mage.cards.t.TuskeriFirewalker.class)); cards.add(new SetCardInfo("Tuskeri Firewalker", 157, Rarity.COMMON, mage.cards.t.TuskeriFirewalker.class));
cards.add(new SetCardInfo("Tyrite Sanctum", 272, Rarity.RARE, mage.cards.t.TyriteSanctum.class));
cards.add(new SetCardInfo("Tyvar Kell", 198, Rarity.MYTHIC, mage.cards.t.TyvarKell.class)); cards.add(new SetCardInfo("Tyvar Kell", 198, Rarity.MYTHIC, mage.cards.t.TyvarKell.class));
cards.add(new SetCardInfo("Undersea Invader", 78, Rarity.COMMON, mage.cards.u.UnderseaInvader.class)); cards.add(new SetCardInfo("Undersea Invader", 78, Rarity.COMMON, mage.cards.u.UnderseaInvader.class));
cards.add(new SetCardInfo("Usher of the Fallen", 35, Rarity.UNCOMMON, mage.cards.u.UsherOfTheFallen.class)); cards.add(new SetCardInfo("Usher of the Fallen", 35, Rarity.UNCOMMON, mage.cards.u.UsherOfTheFallen.class));