* TargetNonBasicLandPermanent - Fixed a bug that nonland permanents could be targeted. Made Target by default required.

This commit is contained in:
LevelX2 2014-06-10 17:46:48 +02:00
parent c58f6c68a1
commit 78f6e28f33

View file

@ -30,13 +30,12 @@ package mage.target.common;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.NamePredicate;
import mage.target.TargetPermanent;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class TargetNonBasicLandPermanent extends TargetPermanent {
public class TargetNonBasicLandPermanent extends TargetLandPermanent {
public TargetNonBasicLandPermanent() {
filter.add(Predicates.not(new NamePredicate("Island")));
@ -45,6 +44,7 @@ public class TargetNonBasicLandPermanent extends TargetPermanent {
filter.add(Predicates.not(new NamePredicate("Swamp")));
filter.add(Predicates.not(new NamePredicate("Plains")));
this.targetName = "nonbasic land";
this.setRequired(true);
}
public TargetNonBasicLandPermanent(final TargetNonBasicLandPermanent target) {