diff --git a/Mage.Sets/src/mage/cards/a/Anticognition.java b/Mage.Sets/src/mage/cards/a/Anticognition.java new file mode 100644 index 0000000000..8b5c0127d9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/Anticognition.java @@ -0,0 +1,57 @@ +package mage.cards.a; + +import java.util.UUID; + +import mage.abilities.condition.common.CardsInOpponentGraveCondition; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.CounterUnlessPaysEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.FilterSpell; +import mage.filter.predicate.Predicates; +import mage.target.TargetSpell; + +/** + * @author TheElk801 + */ +public final class Anticognition extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("creature or planeswalker spell"); + + static { + filter.add(Predicates.or( + CardType.CREATURE.getPredicate(), + CardType.PLANESWALKER.getPredicate() + )); + } + + public Anticognition(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Counter target creature or planeswalker spell unless its controller pays {2}. If an opponent has eight or more cards in their graveyard, instead counter that spell, then scry 2. + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new CounterTargetEffect(), new CounterUnlessPaysEffect(new GenericManaCost(2)), + CardsInOpponentGraveCondition.EIGHT, "Counter target creature or planeswalker spell " + + "unless its controller pays {2}. If an opponent has eight or more cards in their graveyard, " + + "instead counter that spell" + )); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new ScryEffect(2), CardsInOpponentGraveCondition.EIGHT, ", then scry 2" + )); + this.getSpellAbility().addTarget(new TargetSpell(filter)); + this.getSpellAbility().addHint(CardsInOpponentGraveCondition.EIGHT.getHint()); + } + + private Anticognition(final Anticognition card) { + super(card); + } + + @Override + public Anticognition copy() { + return new Anticognition(this); + } +} diff --git a/Mage.Sets/src/mage/cards/m/MindCarver.java b/Mage.Sets/src/mage/cards/m/MindCarver.java index e518564106..3b349bda49 100644 --- a/Mage.Sets/src/mage/cards/m/MindCarver.java +++ b/Mage.Sets/src/mage/cards/m/MindCarver.java @@ -41,7 +41,7 @@ public final class MindCarver extends CardImpl { new BoostEquippedEffect(1, 0), CardsInOpponentGraveCondition.EIGHT, "Equipped creature gets +1/+0. " + "It gets +3/+1 instead as long as an opponent has eight or more cards in their graveyard." - ))); + )).addHint(CardsInOpponentGraveCondition.EIGHT.getHint())); // Equip {2}{B} this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{2}{B}"))); diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index dd649c762f..f62a11f1e9 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -83,6 +83,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Acquisitions Expert", 89, Rarity.UNCOMMON, mage.cards.a.AcquisitionsExpert.class)); cards.add(new SetCardInfo("Akoum Hellhound", 133, Rarity.COMMON, mage.cards.a.AkoumHellhound.class)); + cards.add(new SetCardInfo("Anticognition", 45, Rarity.COMMON, mage.cards.a.Anticognition.class)); cards.add(new SetCardInfo("Archpriest of Iona", 5, Rarity.RARE, mage.cards.a.ArchpriestOfIona.class)); cards.add(new SetCardInfo("Ardent Electromancer", 135, Rarity.COMMON, mage.cards.a.ArdentElectromancer.class)); cards.add(new SetCardInfo("Ashaya, Soul of the Wild", 179, Rarity.MYTHIC, mage.cards.a.AshayaSoulOfTheWild.class));