text fixes

This commit is contained in:
xenohedron 2024-10-19 00:25:12 -04:00
parent 2d44a029eb
commit 250869931b
4 changed files with 10 additions and 8 deletions

View file

@ -81,7 +81,7 @@ public class ExileTopXMayPlayUntilEffect extends OneShotEffect {
String text = "exile the top ";
boolean singular = amount.toString().equals("1");
text += singular ? "card" : CardUtil.numberToText(amount.toString()) + " cards";
if (amount.toString().equals("X")) {
if (amount.toString().equals("X") && !amount.getMessage().isEmpty()) {
text += " of your library, where X is " + amount.getMessage() + ". ";
} else {
text += " of your library. ";