refactor: improved target usage, replaced setNotTarget by withNotTarget

This commit is contained in:
Oleg Agafonov 2023-09-06 22:32:28 +04:00
parent dbaa51f462
commit 4b3a19b4d5
385 changed files with 434 additions and 429 deletions

View file

@ -38,7 +38,7 @@ public class TargetCardInGraveyard extends TargetCard {
public TargetCardInGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter, boolean notTarget) {
super(minNumTargets, maxNumTargets, Zone.GRAVEYARD, filter);
this.setNotTarget(notTarget);
this.withNotTarget(notTarget);
}
protected TargetCardInGraveyard(final TargetCardInGraveyard target) {

View file

@ -34,7 +34,7 @@ public class TargetCardInHand extends TargetCard {
public TargetCardInHand(int minNumTargets, int maxNumTargets, FilterCard filter) {
super(minNumTargets, maxNumTargets, Zone.HAND, filter);
setNotTarget(true);
withNotTarget(true);
}
protected TargetCardInHand(final TargetCardInHand target) {

View file

@ -45,7 +45,7 @@ public class TargetCardInLibrary extends TargetCard {
// with a certain card type or color, that player isn't required to find some or all of those cards
// even if they're present in that zone.
this.setRequired(!filter.hasPredicates());
this.setNotTarget(true);
this.withNotTarget(true);
this.librarySearchLimit = Integer.MAX_VALUE;
}

View file

@ -46,7 +46,7 @@ public class TargetCardInYourGraveyard extends TargetCard {
public TargetCardInYourGraveyard(int minNumTarget, int maxNumTargets, FilterCard filter, boolean notTarget) {
super(minNumTarget, maxNumTargets, Zone.GRAVEYARD, filter);
this.setNotTarget(notTarget);
this.withNotTarget(notTarget);
}
protected TargetCardInYourGraveyard(final TargetCardInYourGraveyard target) {