[PIP] Rampaging Yao Guai, Wild Wasteland, Synth Infiltrator, Paladin Elizabeth Taggerdy (#12613)

* Rampaging Yao Guai

* Wild Wasteland

* Synth Infiltrator

* Paladin Elizabeth Taggerdy

* Fix not including target count if name contains X value

* Fix missing {this}
This commit is contained in:
ssk97 2024-07-29 21:40:38 -07:00 committed by GitHub
parent 82a7769cbd
commit 4c8f60e3a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 310 additions and 1 deletions

View file

@ -106,7 +106,7 @@ public abstract class TargetImpl implements Target {
if (min > 0 && max == Integer.MAX_VALUE) {
sb.append(CardUtil.numberToText(min));
sb.append(" or more ");
} else if (!getTargetName().contains("X") && (min != 1 || max != 1)) {
} 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 ");