mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
Made targets required=true by default (otherwise at the moment only enterthebattlefield abilities have about 50 bugged cards because of required=false and not set to true manually in the code).
This commit is contained in:
parent
5c6206f009
commit
e0fc10fed3
2 changed files with 6 additions and 1 deletions
Mage/src/mage/target
|
@ -48,6 +48,7 @@ public interface Target extends Serializable {
|
||||||
public boolean doneChosing();
|
public boolean doneChosing();
|
||||||
public void clearChosen();
|
public void clearChosen();
|
||||||
public boolean isNotTarget();
|
public boolean isNotTarget();
|
||||||
|
public void setNotTarget(boolean notTarget);
|
||||||
|
|
||||||
// methods for targets
|
// methods for targets
|
||||||
public boolean canChoose(UUID sourceId, UUID sourceControllerId, Game game);
|
public boolean canChoose(UUID sourceId, UUID sourceControllerId, Game game);
|
||||||
|
|
|
@ -53,7 +53,7 @@ public abstract class TargetImpl<T extends TargetImpl<T>> implements Target {
|
||||||
protected Zone zone;
|
protected Zone zone;
|
||||||
protected int maxNumberOfTargets;
|
protected int maxNumberOfTargets;
|
||||||
protected int minNumberOfTargets;
|
protected int minNumberOfTargets;
|
||||||
protected boolean required = false;
|
protected boolean required = true;
|
||||||
protected boolean chosen = false;
|
protected boolean chosen = false;
|
||||||
protected boolean notTarget = false;
|
protected boolean notTarget = false;
|
||||||
|
|
||||||
|
@ -274,4 +274,8 @@ public abstract class TargetImpl<T extends TargetImpl<T>> implements Target {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setNotTarget(boolean notTarget) {
|
||||||
|
this.notTarget = notTarget;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue