forked from External/mage
refactored all instances of SubtypePredicate
This commit is contained in:
parent
3b8298e7c2
commit
86906ec25f
1659 changed files with 2039 additions and 3777 deletions
|
|
@ -15,7 +15,6 @@ import mage.constants.Zone;
|
|||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -44,7 +43,7 @@ public class FetchLandActivatedAbility extends ActivatedAbilityImpl {
|
|||
filter.add(CardType.LAND.getPredicate());
|
||||
List<Predicate<MageObject>> subtypePredicates = new ArrayList<>();
|
||||
for (SubType subtype : subtypes) {
|
||||
subtypePredicates.add(new SubtypePredicate(subtype));
|
||||
subtypePredicates.add(subtype.getPredicate());
|
||||
}
|
||||
filter.add(Predicates.or(subtypePredicates));
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue