mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Update SeekEffect.java
Fix StringBuilder.isEmpty to length() != 0
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user