mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
remove redundant this.targetName = filter.getMessage();
not necessary when same code exists in superclass constructor
This commit is contained in:
parent
6ac8c8e251
commit
43b0d4ef97
20 changed files with 0 additions and 21 deletions
Mage.Sets/src/mage/cards
Mage/src/main/java/mage/target/common
TargetArtifactPermanent.javaTargetAttackingCreature.javaTargetAttackingOrBlockingCreature.javaTargetCardInASingleGraveyard.javaTargetCardInExile.javaTargetCardInGraveyard.javaTargetCardInHand.javaTargetCardInOpponentsGraveyard.javaTargetCardInYourGraveyard.javaTargetControlledCreaturePermanent.javaTargetControlledPermanent.javaTargetCreatureOrPlaneswalker.javaTargetCreaturePermanent.javaTargetEnchantmentPermanent.javaTargetLandPermanent.javaTargetNonlandPermanent.javaTargetOpponentsChoicePermanent.javaTargetSpellOrPermanent.java
|
@ -116,7 +116,6 @@ class TargetCreaturePermanentSameController extends TargetCreaturePermanent {
|
|||
|
||||
public TargetCreaturePermanentSameController(int minNumTargets, int maxNumTargets, FilterCreaturePermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCreaturePermanentSameController(final TargetCreaturePermanentSameController target) {
|
||||
|
|
|
@ -112,7 +112,6 @@ class LoamingShamanTargetCardsInGraveyard extends TargetCardInGraveyard {
|
|||
|
||||
public LoamingShamanTargetCardsInGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public LoamingShamanTargetCardsInGraveyard(final LoamingShamanTargetCardsInGraveyard target) {
|
||||
|
|
|
@ -55,7 +55,6 @@ public class TargetArtifactPermanent extends TargetPermanent {
|
|||
|
||||
public TargetArtifactPermanent(int minNumTargets, int maxNumTargets, FilterArtifactPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetArtifactPermanent(final TargetArtifactPermanent target) {
|
||||
|
|
|
@ -47,7 +47,6 @@ public class TargetAttackingCreature extends TargetPermanent {
|
|||
|
||||
public TargetAttackingCreature(int minNumTargets, int maxNumTargets, FilterAttackingCreature filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetAttackingCreature(final TargetAttackingCreature target) {
|
||||
|
|
|
@ -47,7 +47,6 @@ public class TargetAttackingOrBlockingCreature extends TargetPermanent {
|
|||
|
||||
public TargetAttackingOrBlockingCreature(int minNumTargets, int maxNumTargets, FilterAttackingOrBlockingCreature filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetAttackingOrBlockingCreature(final TargetAttackingOrBlockingCreature target) {
|
||||
|
|
|
@ -47,7 +47,6 @@ public class TargetCardInASingleGraveyard extends TargetCard {
|
|||
|
||||
public TargetCardInASingleGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.GRAVEYARD, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCardInASingleGraveyard(final TargetCardInASingleGraveyard target) {
|
||||
|
|
|
@ -73,7 +73,6 @@ public class TargetCardInExile extends TargetCard {
|
|||
} else {
|
||||
this.allExileZones = allExileZones;
|
||||
}
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCardInExile(final TargetCardInExile target) {
|
||||
|
|
|
@ -56,7 +56,6 @@ public class TargetCardInGraveyard extends TargetCard {
|
|||
|
||||
public TargetCardInGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.GRAVEYARD, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCardInGraveyard(final TargetCardInGraveyard target) {
|
||||
|
|
|
@ -60,7 +60,6 @@ public class TargetCardInHand extends TargetCard {
|
|||
|
||||
public TargetCardInHand(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.HAND, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCardInHand(final TargetCardInHand target) {
|
||||
|
|
|
@ -26,7 +26,6 @@ public class TargetCardInOpponentsGraveyard extends TargetCard {
|
|||
|
||||
public TargetCardInOpponentsGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter, boolean allFromOneOpponent) {
|
||||
super(minNumTargets, maxNumTargets, Zone.GRAVEYARD, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
this.allFromOneOpponent = allFromOneOpponent;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ public class TargetCardInYourGraveyard extends TargetCard {
|
|||
|
||||
public TargetCardInYourGraveyard(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.GRAVEYARD, filter);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCardInYourGraveyard(final TargetCardInYourGraveyard target) {
|
||||
|
|
|
@ -53,7 +53,6 @@ public class TargetControlledCreaturePermanent extends TargetControlledPermanent
|
|||
|
||||
public TargetControlledCreaturePermanent(int minNumTargets, int maxNumTargets, FilterControlledCreaturePermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetControlledCreaturePermanent(final TargetControlledCreaturePermanent target) {
|
||||
|
|
|
@ -51,7 +51,6 @@ public class TargetControlledPermanent extends TargetPermanent {
|
|||
|
||||
public TargetControlledPermanent(int minNumTargets, int maxNumTargets, FilterControlledPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetControlledPermanent(final TargetControlledPermanent target) {
|
||||
|
|
|
@ -46,7 +46,6 @@ public class TargetCreatureOrPlaneswalker extends TargetPermanent {
|
|||
|
||||
public TargetCreatureOrPlaneswalker(int minNumTargets, int maxNumTargets, FilterCreatureOrPlaneswalkerPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCreatureOrPlaneswalker(final TargetCreatureOrPlaneswalker target) {
|
||||
|
|
|
@ -55,7 +55,6 @@ public class TargetCreaturePermanent extends TargetPermanent {
|
|||
|
||||
public TargetCreaturePermanent(int minNumTargets, int maxNumTargets, FilterCreaturePermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetCreaturePermanent(final TargetCreaturePermanent target) {
|
||||
|
|
|
@ -51,7 +51,6 @@ public class TargetEnchantmentPermanent extends TargetPermanent {
|
|||
|
||||
public TargetEnchantmentPermanent(int minNumTargets, int maxNumTargets, FilterEnchantmentPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetEnchantmentPermanent(final TargetEnchantmentPermanent target) {
|
||||
|
|
|
@ -51,7 +51,6 @@ public class TargetLandPermanent extends TargetPermanent {
|
|||
|
||||
public TargetLandPermanent(int minNumTargets, int maxNumTargets, FilterLandPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetLandPermanent(final TargetLandPermanent target) {
|
||||
|
|
|
@ -55,7 +55,6 @@ public class TargetNonlandPermanent extends TargetPermanent {
|
|||
|
||||
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets, FilterNonlandPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetNonlandPermanent(final TargetNonlandPermanent target) {
|
||||
|
|
|
@ -25,12 +25,10 @@ public class TargetOpponentsChoicePermanent extends TargetPermanent {
|
|||
|
||||
public TargetOpponentsChoicePermanent(FilterPermanent filter) {
|
||||
super(1, 1, filter, false);
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
public TargetOpponentsChoicePermanent(int minNumTargets, int maxNumTargets, FilterPermanent filter, boolean notTarget, boolean dontTargetPlayer) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
this.targetName = filter.getMessage();
|
||||
this.dontTargetPlayer = dontTargetPlayer;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,6 @@ public class TargetSpellOrPermanent extends TargetImpl {
|
|||
this.minNumberOfTargets = minNumTargets;
|
||||
this.maxNumberOfTargets = maxNumTargets;
|
||||
this.zone = Zone.ALL;
|
||||
this.targetName = filter.getMessage();
|
||||
this.notTarget = notTarget;
|
||||
this.filter = filter;
|
||||
this.targetName = filter.getMessage();
|
||||
|
|
Loading…
Add table
Reference in a new issue