refactored all instances of SubtypePredicate

This commit is contained in:
Evan Kranzler 2020-01-06 16:48:00 -05:00
parent 3b8298e7c2
commit 86906ec25f
1659 changed files with 2039 additions and 3777 deletions

View file

@ -5,7 +5,6 @@ import mage.constants.SubType;
import mage.constants.Zone;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterLandPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.permanent.Permanent;
import org.junit.Assert;
import org.junit.Test;
@ -36,7 +35,7 @@ public class SimpleGameTest extends CardTestMultiPlayerBase {
assertLife(playerD, 20);
FilterPermanent filterPermanent = new FilterLandPermanent();
filterPermanent.add(new SubtypePredicate(SubType.FOREST));
filterPermanent.add(SubType.FOREST.getPredicate());
List<Permanent> forestCards = currentGame.getBattlefield().getAllActivePermanents(filterPermanent, currentGame);
Assert.assertEquals(4, forestCards.size());
}