Add common effect class for "Its controller searches..." (Path to Exile, etc) Fixes #9654

This commit is contained in:
Alex W. Jackson 2022-10-15 21:27:55 -04:00
parent 58c55bf08c
commit 76fcfafc8b
19 changed files with 243 additions and 653 deletions

View file

@ -119,7 +119,11 @@ public abstract class TargetImpl implements Target {
if (!isNotTarget() && !getTargetName().contains("target")) {
sb.append("target ");
}
sb.append(getTargetName());
if (isNotTarget() && min == 1 && max == 1) {
sb.append(CardUtil.addArticle(getTargetName()));
} else {
sb.append(getTargetName());
}
return sb.toString();
}