mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Fixed the TargetNonNasicLandPermanent class checking for anme instead of subtype (concerned Ore Gorger, Tectonic Edge, Ravenous Baboons, Goblin Ruinblaster, Detritivore, Fissure Vent, Dust Bowl, Incendiary Command, Fulminator Mage).
This commit is contained in:
parent
8e92291b9d
commit
923db227dd
2 changed files with 26 additions and 12 deletions
|
@ -47,6 +47,13 @@ import mage.game.Game;
|
|||
import mage.target.common.TargetNonBasicLandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.ActivateIfConditionActivatedAbility;
|
||||
import mage.abilities.condition.common.OpponentControllsMoreCondition;
|
||||
import mage.abilities.condition.common.OpponentControlsPermanentCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.filter.common.FilterLandCard;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -57,14 +64,21 @@ public class TectonicEdge extends CardImpl {
|
|||
public TectonicEdge(UUID ownerId) {
|
||||
super(ownerId, 145, "Tectonic Edge", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, null);
|
||||
this.expansionSetCode = "WWK";
|
||||
|
||||
// Tap: Add 1 to your mana pool.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
Costs costs = new CostsImpl();
|
||||
costs.add(new TapSourceCost());
|
||||
costs.add(new SacrificeSourceCost());
|
||||
costs.add(new TectonicEdgeCost());
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), costs);
|
||||
|
||||
// {1}, {T}, Sacrifice Tectonic Edge: Destroy target nonbasic land. Activate this ability only if an opponent controls four or more lands.
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new DestroyTargetEffect(),
|
||||
new ManaCostsImpl("{1}"),
|
||||
new OpponentControlsPermanentCondition(
|
||||
new FilterLandPermanent("an opponent controls four or more lands"),
|
||||
OpponentControlsPermanentCondition.CountType.MORE_THAN, 3));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetNonBasicLandPermanent());
|
||||
ability.addManaCost(new GenericManaCost(1));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -38,11 +38,11 @@ import mage.filter.predicate.mageobject.NamePredicate;
|
|||
public class TargetNonBasicLandPermanent extends TargetLandPermanent {
|
||||
|
||||
public TargetNonBasicLandPermanent() {
|
||||
filter.add(Predicates.not(new NamePredicate("Island")));
|
||||
filter.add(Predicates.not(new NamePredicate("Forest")));
|
||||
filter.add(Predicates.not(new NamePredicate("Mountain")));
|
||||
filter.add(Predicates.not(new NamePredicate("Swamp")));
|
||||
filter.add(Predicates.not(new NamePredicate("Plains")));
|
||||
filter.add(Predicates.not(new SubtypePredicate("Island")));
|
||||
filter.add(Predicates.not(new SubtypePredicate("Forest")));
|
||||
filter.add(Predicates.not(new SubtypePredicate("Mountain")));
|
||||
filter.add(Predicates.not(new SubtypePredicate("Swamp")));
|
||||
filter.add(Predicates.not(new SubtypePredicate("Plains")));
|
||||
this.targetName = "nonbasic land";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue