mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Fixed AddCountersTargetEffect
This commit is contained in:
parent
f5c2a51be1
commit
66f785dd71
1 changed files with 15 additions and 11 deletions
|
@ -145,19 +145,23 @@ public class AddCountersTargetEffect extends OneShotEffect {
|
|||
sb.append("s");
|
||||
}
|
||||
sb.append(" on ");
|
||||
|
||||
Target target = mode.getTargets().get(0);
|
||||
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 ");
|
||||
if (mode.getTargets().size() > 0) {
|
||||
Target target = mode.getTargets().get(0);
|
||||
if (target.getNumberOfTargets() == 0) {
|
||||
sb.append("up to ");
|
||||
}
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue