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:
magenoxx 2011-06-26 15:59:59 +04:00
parent 5c6206f009
commit e0fc10fed3
2 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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;
}
}