forked from External/mage
fix text: BecomesColorTargetEffect
This commit is contained in:
parent
46567ce2a5
commit
f944408252
7 changed files with 19 additions and 25 deletions
|
|
@ -45,15 +45,15 @@ public abstract class TargetImpl implements Target {
|
|||
@Override
|
||||
public abstract TargetImpl copy();
|
||||
|
||||
public TargetImpl() {
|
||||
protected TargetImpl() {
|
||||
this(false);
|
||||
}
|
||||
|
||||
public TargetImpl(boolean notTarget) {
|
||||
protected TargetImpl(boolean notTarget) {
|
||||
this.notTarget = notTarget;
|
||||
}
|
||||
|
||||
public TargetImpl(final TargetImpl target) {
|
||||
protected TargetImpl(final TargetImpl target) {
|
||||
this.targetName = target.targetName;
|
||||
this.zone = target.zone;
|
||||
this.maxNumberOfTargets = target.maxNumberOfTargets;
|
||||
|
|
@ -103,7 +103,10 @@ public abstract class TargetImpl implements Target {
|
|||
StringBuilder sb = new StringBuilder();
|
||||
int min = getMinNumberOfTargets();
|
||||
int max = getMaxNumberOfTargets();
|
||||
if (!getTargetName().startsWith("X") && (min != 1 || max != 1)) {
|
||||
if (min > 0 && max == Integer.MAX_VALUE) {
|
||||
sb.append(CardUtil.numberToText(min));
|
||||
sb.append(" or more ");
|
||||
} else if (!getTargetName().startsWith("X") && (min != 1 || max != 1)) {
|
||||
if (min < max && max != Integer.MAX_VALUE) {
|
||||
if (min == 1 && max == 2) {
|
||||
sb.append("one or ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue