515253545556575859
} public FilterCreatureOrPlayer(String name, UUID controllerId) { super(name); creatureFilter = new FilterCreaturePermanent(); playerFilter = new FilterPlayer(); creatureFilter.getControllerId().add(controllerId); playerFilter.getPlayerId().add(controllerId); }
59606162636465
} public FilterCreatureOrPlayer(String name) { super(name); creatureFilter = new FilterCreaturePermanent(); playerFilter = new FilterPlayer(); }
4748495051525354
public FilterPlaneswalkerOrPlayer(Set<UUID> defenders) { super("planeswalker or player"); planeswalkerFilter = new FilterPlaneswalkerPermanent(); planeswalkerFilter.getControllerId().addAll(defenders); playerFilter = new FilterPlayer(); playerFilter.getPlayerId().addAll(defenders); }
6162636465666768
ArrayList<Predicate<Player>> playerPredicates = new ArrayList<Predicate<Player>>(); for (UUID defenderId : defenders) { playerPredicates.add(new PlayerIdPredicate(defenderId)); } playerFilter = new FilterPlayer(); playerFilter.add(Predicates.or(playerPredicates)); }
51525354555657
} public FilterPermanentOrPlayer(String name) { super(name); permanentFilter = new FilterPermanent(); playerFilter = new FilterPlayer(); }
454647484950515253
public TargetOpponent() { this(false); } public TargetOpponent(boolean notTarget) { super(1, 1, false, new FilterPlayer("opponent")); this.filter.add(new PlayerPredicate(TargetController.OPPONENT)); setNotTarget(notTarget); }
53545556575859
public TargetPlayer(int numTargets) { this(numTargets, numTargets, false); } public TargetPlayer(int minNumTargets, int maxNumTargets, boolean notTarget) { this(minNumTargets, maxNumTargets, notTarget, new FilterPlayer()); }