mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
Dwarven Blastminer should only be able to target non-basics
likewise Encroaching Wastes
This commit is contained in:
parent
5e1bc1e583
commit
882136fbc7
3 changed files with 6 additions and 23 deletions
|
|
@ -39,16 +39,13 @@ import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.target.common.TargetNonBasicLandPermanent;
|
||||||
import mage.target.common.TargetLandPermanent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public class EncroachingWastes extends CardImpl {
|
public class EncroachingWastes extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
|
||||||
|
|
||||||
public EncroachingWastes(UUID ownerId) {
|
public EncroachingWastes(UUID ownerId) {
|
||||||
super(ownerId, 227, "Encroaching Wastes", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
|
super(ownerId, 227, "Encroaching Wastes", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
|
||||||
this.expansionSetCode = "M14";
|
this.expansionSetCode = "M14";
|
||||||
|
|
@ -59,7 +56,7 @@ public class EncroachingWastes extends CardImpl {
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new GenericManaCost(4));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new GenericManaCost(4));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
ability.addTarget(new TargetLandPermanent(filter));
|
ability.addTarget(new TargetNonBasicLandPermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,17 +39,13 @@ import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.target.common.TargetNonBasicLandPermanent;
|
||||||
import mage.target.common.TargetLandPermanent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
*/
|
*/
|
||||||
public class DwarvenBlastminer extends CardImpl {
|
public class DwarvenBlastminer extends CardImpl {
|
||||||
|
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
|
||||||
|
|
||||||
public DwarvenBlastminer(UUID ownerId) {
|
public DwarvenBlastminer(UUID ownerId) {
|
||||||
super(ownerId, 199, "Dwarven Blastminer", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
super(ownerId, 199, "Dwarven Blastminer", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||||
this.expansionSetCode = "ONS";
|
this.expansionSetCode = "ONS";
|
||||||
|
|
@ -60,7 +56,7 @@ public class DwarvenBlastminer extends CardImpl {
|
||||||
// {2}{R}, {tap}: Destroy target nonbasic land.
|
// {2}{R}, {tap}: Destroy target nonbasic land.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{R}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{R}"));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addTarget(new TargetLandPermanent(filter));
|
ability.addTarget(new TargetNonBasicLandPermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// Morph {R}
|
// Morph {R}
|
||||||
|
|
|
||||||
|
|
@ -37,31 +37,21 @@ import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
|
||||||
import mage.filter.predicate.Predicates;
|
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
import mage.target.common.TargetLandPermanent;
|
import mage.target.common.TargetNonBasicLandPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author LoneFox
|
* @author LoneFox
|
||||||
*/
|
*/
|
||||||
public class UncontrolledInfestation extends CardImpl {
|
public class UncontrolledInfestation extends CardImpl {
|
||||||
|
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
|
||||||
|
|
||||||
static{
|
|
||||||
filter.add(Predicates.not(new SupertypePredicate("Basic")));
|
|
||||||
}
|
|
||||||
|
|
||||||
public UncontrolledInfestation(UUID ownerId) {
|
public UncontrolledInfestation(UUID ownerId) {
|
||||||
super(ownerId, 108, "Uncontrolled Infestation", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}");
|
super(ownerId, 108, "Uncontrolled Infestation", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}");
|
||||||
this.expansionSetCode = "SCG";
|
this.expansionSetCode = "SCG";
|
||||||
this.subtype.add("Aura");
|
this.subtype.add("Aura");
|
||||||
|
|
||||||
// Enchant nonbasic land
|
// Enchant nonbasic land
|
||||||
TargetPermanent auraTarget = new TargetLandPermanent(filter);
|
TargetPermanent auraTarget = new TargetNonBasicLandPermanent();
|
||||||
this.getSpellAbility().addTarget(auraTarget);
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
|
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
|
||||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue