From 6fc1c4b2e175e545fa378d8c4fb65d5b5f1a3e55 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 27 May 2019 17:12:41 -0400 Subject: [PATCH] Implemented Talisman of Conviction --- .../mage/cards/t/TalismanOfConviction.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TalismanOfConviction.java diff --git a/Mage.Sets/src/mage/cards/t/TalismanOfConviction.java b/Mage.Sets/src/mage/cards/t/TalismanOfConviction.java new file mode 100644 index 0000000000..df0fb5d534 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TalismanOfConviction.java @@ -0,0 +1,42 @@ +package mage.cards.t; + +import mage.abilities.Ability; +import mage.abilities.effects.common.DamageControllerEffect; +import mage.abilities.mana.ColorlessManaAbility; +import mage.abilities.mana.RedManaAbility; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TalismanOfConviction extends CardImpl { + + public TalismanOfConviction(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + // {T}: Add {C}. + this.addAbility(new ColorlessManaAbility()); + + // {T}: Add {R} or {W}. Talisman of Conviction deals 1 damage to you. + Ability ability = new RedManaAbility(); + ability.addEffect(new DamageControllerEffect(1)); + this.addAbility(ability); + ability = new WhiteManaAbility(); + ability.addEffect(new DamageControllerEffect(1)); + this.addAbility(ability); + } + + private TalismanOfConviction(final TalismanOfConviction card) { + super(card); + } + + @Override + public TalismanOfConviction copy() { + return new TalismanOfConviction(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index bfc943e9b2..af30430606 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -132,6 +132,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Sunbaked Canyon", 247, Rarity.RARE, mage.cards.s.SunbakedCanyon.class)); cards.add(new SetCardInfo("Sword of Sinew and Steel", 228, Rarity.MYTHIC, mage.cards.s.SwordOfSinewAndSteel.class)); cards.add(new SetCardInfo("Sword of Truth and Justice", 229, Rarity.MYTHIC, mage.cards.s.SwordOfTruthAndJustice.class)); + cards.add(new SetCardInfo("Talisman of Conviction", 230, Rarity.UNCOMMON, mage.cards.t.TalismanOfConviction.class)); cards.add(new SetCardInfo("Talisman of Creativity", 231, Rarity.UNCOMMON, mage.cards.t.TalismanOfCreativity.class)); cards.add(new SetCardInfo("Talisman of Curiosity", 232, Rarity.COMMON, mage.cards.t.TalismanOfCuriosity.class)); cards.add(new SetCardInfo("Talisman of Resilience", 234, Rarity.UNCOMMON, mage.cards.t.TalismanOfResilience.class));