forked from External/mage
implement [EOE] Drill Too Deep
This commit is contained in:
parent
7e290a69df
commit
17b2c4b383
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/d/DrillTooDeep.java
Normal file
54
Mage.Sets/src/mage/cards/d/DrillTooDeep.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class DrillTooDeep extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Spacecraft or Planet you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.SPACECRAFT.getPredicate(),
|
||||
SubType.PLANET.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public DrillTooDeep(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Choose one —
|
||||
// • Put five charge counters on target Spacecraft or Planet you control
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.CHARGE.createInstance(5)));
|
||||
this.getSpellAbility().addTarget(new TargetControlledPermanent(filter));
|
||||
|
||||
// • Destroy target artifact.
|
||||
Mode mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetArtifactPermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private DrillTooDeep(final DrillTooDeep card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DrillTooDeep copy() {
|
||||
return new DrillTooDeep(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -83,6 +83,7 @@ public final class EdgeOfEternities extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Devastating Onslaught", 132, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Devastating Onslaught", 308, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Devastating Onslaught", 361, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Drill Too Deep", 133, Rarity.COMMON, mage.cards.d.DrillTooDeep.class));
|
||||
cards.add(new SetCardInfo("Drix Fatemaker", 178, Rarity.COMMON, mage.cards.d.DrixFatemaker.class));
|
||||
cards.add(new SetCardInfo("Dual-Sun Technique", 13, Rarity.UNCOMMON, mage.cards.d.DualSunTechnique.class));
|
||||
cards.add(new SetCardInfo("Dubious Delicacy", 96, Rarity.UNCOMMON, mage.cards.d.DubiousDelicacy.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue