forked from External/mage
[LCI] Implement Disruptor Wanderglyph
This commit is contained in:
parent
33090431ba
commit
136cae01e2
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java
Normal file
44
Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.target.common.TargetCardInOpponentsGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DisruptorWanderglyph extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("card from an opponent's graveyard");
|
||||
|
||||
public DisruptorWanderglyph(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}");
|
||||
|
||||
this.subtype.add(SubType.GOLEM);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever Disruptor Wanderglyph attacks, exile target card from an opponent's graveyard.
|
||||
Ability ability = new AttacksTriggeredAbility(new ExileTargetEffect());
|
||||
ability.addTarget(new TargetCardInOpponentsGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private DisruptorWanderglyph(final DisruptorWanderglyph card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DisruptorWanderglyph copy() {
|
||||
return new DisruptorWanderglyph(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +70,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Didact Echo", 53, Rarity.COMMON, mage.cards.d.DidactEcho.class));
|
||||
cards.add(new SetCardInfo("Digsite Conservator", 252, Rarity.UNCOMMON, mage.cards.d.DigsiteConservator.class));
|
||||
cards.add(new SetCardInfo("Dinotomaton", 144, Rarity.COMMON, mage.cards.d.Dinotomaton.class));
|
||||
cards.add(new SetCardInfo("Disruptor Wanderglyph", 253, Rarity.COMMON, mage.cards.d.DisruptorWanderglyph.class));
|
||||
cards.add(new SetCardInfo("Dowsing Device", 146, Rarity.UNCOMMON, mage.cards.d.DowsingDevice.class));
|
||||
cards.add(new SetCardInfo("Dreadmaw's Ire", 147, Rarity.UNCOMMON, mage.cards.d.DreadmawsIre.class));
|
||||
cards.add(new SetCardInfo("Dusk Rose Reliquary", 10, Rarity.UNCOMMON, mage.cards.d.DuskRoseReliquary.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue