mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00: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
|
@ -48,6 +48,7 @@ public interface Target extends Serializable {
|
|||
public boolean doneChosing();
|
||||
public void clearChosen();
|
||||
public boolean isNotTarget();
|
||||
public void setNotTarget(boolean notTarget);
|
||||
|
||||
// methods for targets
|
||||
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 int maxNumberOfTargets;
|
||||
protected int minNumberOfTargets;
|
||||
protected boolean required = false;
|
||||
protected boolean required = true;
|
||||
protected boolean chosen = false;
|
||||
protected boolean notTarget = false;
|
||||
|
||||
|
@ -274,4 +274,8 @@ public abstract class TargetImpl<T extends TargetImpl<T>> implements Target {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setNotTarget(boolean notTarget) {
|
||||
this.notTarget = notTarget;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue