Updated targetImpl message with multi targets. Updated PreventDamageFromTargetEffect to work with multi targets. Soul Parry works.

This commit is contained in:
magenoxx 2011-01-26 09:31:21 +03:00
parent 883d1b373f
commit b71a5ed9b4
3 changed files with 45 additions and 20 deletions

View file

@ -92,6 +92,12 @@ public abstract class TargetImpl<T extends TargetImpl<T>> implements Target {
@Override
public String getMessage() {
if (maxNumberOfTargets > 1) {
StringBuilder sb = new StringBuilder();
sb.append("Select ").append(targetName);
sb.append(" (").append(targets.size()).append("/").append(maxNumberOfTargets).append(")");
return sb.toString();
}
return "Select a " + targetName;
}