From e0fc10fed354b6f97f02fc08bdd9a7c5358dc4ab Mon Sep 17 00:00:00 2001 From: magenoxx Date: Sun, 26 Jun 2011 15:59:59 +0400 Subject: [PATCH] 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). --- Mage/src/mage/target/Target.java | 1 + Mage/src/mage/target/TargetImpl.java | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/target/Target.java b/Mage/src/mage/target/Target.java index 373d55a123..46e351c0b5 100644 --- a/Mage/src/mage/target/Target.java +++ b/Mage/src/mage/target/Target.java @@ -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); diff --git a/Mage/src/mage/target/TargetImpl.java b/Mage/src/mage/target/TargetImpl.java index 3fefd24f51..595ed19147 100644 --- a/Mage/src/mage/target/TargetImpl.java +++ b/Mage/src/mage/target/TargetImpl.java @@ -53,7 +53,7 @@ public abstract class TargetImpl> 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> implements Target { return null; } + @Override + public void setNotTarget(boolean notTarget) { + this.notTarget = notTarget; + } }