mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
refactored all instances of SubtypePredicate
This commit is contained in:
parent
3b8298e7c2
commit
86906ec25f
1659 changed files with 2039 additions and 3777 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue