mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Implemented Deny the Divine
This commit is contained in:
parent
1541a1ccc2
commit
cb0bf451ee
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/d/DenyTheDivine.java
Normal file
44
Mage.Sets/src/mage/cards/d/DenyTheDivine.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.effects.common.CounterTargetWithReplacementEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DenyTheDivine extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("creature or enchantment spell");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.ENCHANTMENT.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public DenyTheDivine(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||
|
||||
// Counter target creature or enchantment spell. If that spell is countered this way, exile it instead of putting it into its owner's graveyard.
|
||||
this.getSpellAbility().addEffect(new CounterTargetWithReplacementEffect(Zone.EXILED));
|
||||
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
||||
}
|
||||
|
||||
private DenyTheDivine(final DenyTheDivine card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DenyTheDivine copy() {
|
||||
return new DenyTheDivine(this);
|
||||
}
|
||||
}
|
|
@ -57,6 +57,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Daybreak Chimera", 10, Rarity.COMMON, mage.cards.d.DaybreakChimera.class));
|
||||
cards.add(new SetCardInfo("Deathbellow War Cry", 294, Rarity.RARE, mage.cards.d.DeathbellowWarCry.class));
|
||||
cards.add(new SetCardInfo("Demon of Loathing", 292, Rarity.RARE, mage.cards.d.DemonOfLoathing.class));
|
||||
cards.add(new SetCardInfo("Deny the Divine", 47, Rarity.COMMON, mage.cards.d.DenyTheDivine.class));
|
||||
cards.add(new SetCardInfo("Destiny Spinner", 168, Rarity.UNCOMMON, mage.cards.d.DestinySpinner.class));
|
||||
cards.add(new SetCardInfo("Devourer of Memory", 213, Rarity.UNCOMMON, mage.cards.d.DevourerOfMemory.class));
|
||||
cards.add(new SetCardInfo("Discordant Piper", 88, Rarity.COMMON, mage.cards.d.DiscordantPiper.class));
|
||||
|
|
Loading…
Reference in a new issue