Update SeekEffect.java

Fix StringBuilder.isEmpty to length() != 0
This commit is contained in:
Hans Mackowiak
2024-11-25 15:27:43 +01:00
committed by GitHub
parent 3c21054f8e
commit 4b63fd8dc1

View File

@@ -67,7 +67,7 @@ public class SeekEffect extends SpellAbilityEffect {
pool = CardLists.getValidCards(pool, seekType, source.getController(), source, sa);
}
if (pool.isEmpty()) {
if (!notify.isEmpty()) notify.append("\r\n");
if (!notify.length() != 0) notify.append("\r\n");
notify.append(Localizer.getInstance().getMessage("lblSeekFailed", seekType));
continue; // can't find if nothing to seek
}
@@ -88,7 +88,7 @@ public class SeekEffect extends SpellAbilityEffect {
}
}
if (!notify.isEmpty()) {
if (!notify.length() != 0) {
game.getAction().notifyOfValue(sa, source, notify.toString(), null);
}
if (!soughtCards.isEmpty()) {