Fixed AddCountersTargetEffect

This commit is contained in:
Styxo 2016-09-03 22:34:45 +02:00
parent f5c2a51be1
commit 66f785dd71

View file

@ -146,18 +146,22 @@ public class AddCountersTargetEffect extends OneShotEffect {
} }
sb.append(" on "); sb.append(" on ");
Target target = mode.getTargets().get(0); if (mode.getTargets().size() > 0) {
if (target.getNumberOfTargets() == 0) { Target target = mode.getTargets().get(0);
sb.append("up to "); if (target.getNumberOfTargets() == 0) {
} sb.append("up to ");
if (target.getMaxNumberOfTargets() > 1 || target.getNumberOfTargets() == 0) {
sb.append(target.getMaxNumberOfTargets()).append(" target ").append(target.getTargetName());
} else {
if (!target.getTargetName().startsWith("another")) {
sb.append("target ");
} }
sb.append(target.getTargetName());
if (target.getMaxNumberOfTargets() > 1 || target.getNumberOfTargets() == 0) {
sb.append(target.getMaxNumberOfTargets()).append(" target ").append(target.getTargetName());
} else {
if (!target.getTargetName().startsWith("another")) {
sb.append("target ");
}
sb.append(target.getTargetName());
}
} else {
sb.append("that creature");
} }
if (amount.getMessage().length() > 0) { if (amount.getMessage().length() > 0) {