more text fixes

This commit is contained in:
xenohedron 2025-09-13 19:19:21 -04:00
parent 18a050fb70
commit 49d65c1a88
51 changed files with 60 additions and 70 deletions

View file

@ -284,7 +284,8 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
}
StringBuilder sb = new StringBuilder();
if (condition != null) {
sb.append(condition.toString());
sb.append("if ");
sb.append(condition);
if (alternateCosts.size() > 1) {
sb.append(", rather than pay this spell's mana cost, ");
} else {
@ -293,8 +294,6 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
} else {
sb.append("You may ");
}
int numberCosts = 0;
String remarkText = "";
sb.append(CardUtil.concatWithAnd(alternateCosts
.stream()
.map(cost -> cost.getCost() instanceof ManaCost
@ -308,9 +307,6 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
sb.append("cast this spell without paying its mana cost");
}
sb.append('.');
if (numberCosts == 1 && remarkText != null) {
sb.append(' ').append(remarkText);
}
return sb.toString();
}