Improved logs on card create exceptions, fixed broken tests

This commit is contained in:
Oleg Agafonov 2018-04-18 20:37:05 +04:00
parent 0840fa9e0d
commit c11a16d115
2 changed files with 14 additions and 3 deletions

View file

@ -29,6 +29,7 @@
package mage.target.common;
import mage.constants.SuperType;
import mage.filter.common.FilterLandPermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.SupertypePredicate;
@ -39,7 +40,8 @@ import mage.filter.predicate.mageobject.SupertypePredicate;
public class TargetNonBasicLandPermanent extends TargetLandPermanent {
public TargetNonBasicLandPermanent() {
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
this.filter = new FilterLandPermanent();
this.filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
this.targetName = "nonbasic land";
}