mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[ZNR] Implemented Anticognition
This commit is contained in:
parent
b54c9449ef
commit
cda8a5e9c0
3 changed files with 59 additions and 1 deletions
57
Mage.Sets/src/mage/cards/a/Anticognition.java
Normal file
57
Mage.Sets/src/mage/cards/a/Anticognition.java
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -41,7 +41,7 @@ public final class MindCarver extends CardImpl {
|
||||||
new BoostEquippedEffect(1, 0),
|
new BoostEquippedEffect(1, 0),
|
||||||
CardsInOpponentGraveCondition.EIGHT, "Equipped creature gets +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."
|
"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}
|
// Equip {2}{B}
|
||||||
this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{2}{B}")));
|
this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{2}{B}")));
|
||||||
|
|
|
@ -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("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("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("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("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));
|
cards.add(new SetCardInfo("Ashaya, Soul of the Wild", 179, Rarity.MYTHIC, mage.cards.a.AshayaSoulOfTheWild.class));
|
||||||
|
|
Loading…
Reference in a new issue