From de8510dbe67092f75f774a488d4398eb48d76403 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 27 May 2019 17:06:59 -0400 Subject: [PATCH] Implemented Talisman of Resistance --- .../mage/cards/t/TalismanOfResilience.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TalismanOfResilience.java diff --git a/Mage.Sets/src/mage/cards/t/TalismanOfResilience.java b/Mage.Sets/src/mage/cards/t/TalismanOfResilience.java new file mode 100644 index 0000000000..595794ab99 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TalismanOfResilience.java @@ -0,0 +1,42 @@ +package mage.cards.t; + +import mage.abilities.Ability; +import mage.abilities.effects.common.DamageControllerEffect; +import mage.abilities.mana.BlackManaAbility; +import mage.abilities.mana.ColorlessManaAbility; +import mage.abilities.mana.GreenManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TalismanOfResilience extends CardImpl { + + public TalismanOfResilience(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + // {T}: Add {C}. + this.addAbility(new ColorlessManaAbility()); + + // {T}: Add {B} or {G}. Talisman of Resilience deals 1 damage to you. + Ability ability = new BlackManaAbility(); + ability.addEffect(new DamageControllerEffect(1)); + this.addAbility(ability); + ability = new GreenManaAbility(); + ability.addEffect(new DamageControllerEffect(1)); + this.addAbility(ability); + } + + private TalismanOfResilience(final TalismanOfResilience card) { + super(card); + } + + @Override + public TalismanOfResilience copy() { + return new TalismanOfResilience(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 451133d8c1..612ac031e5 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -133,6 +133,7 @@ public final class ModernHorizons extends ExpansionSet { 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 Curiosity", 232, Rarity.COMMON, mage.cards.t.TalismanOfCuriosity.class)); + cards.add(new SetCardInfo("Talisman of Resilience", 234, Rarity.UNCOMMON, mage.cards.t.TalismanOfResilience.class)); cards.add(new SetCardInfo("Tempered Sliver", 183, Rarity.UNCOMMON, mage.cards.t.TemperedSliver.class)); cards.add(new SetCardInfo("The First Sliver", 200, Rarity.MYTHIC, mage.cards.t.TheFirstSliver.class)); cards.add(new SetCardInfo("Thundering Djinn", 215, Rarity.UNCOMMON, mage.cards.t.ThunderingDjinn.class));