[MID] Implemented Augur of Autumn

This commit is contained in:
Daniel Bomar 2021-09-07 15:43:22 -05:00
parent cfd3761904
commit e6e802033b
No known key found for this signature in database
GPG key ID: C86C8658F4023918
3 changed files with 77 additions and 1 deletions

View file

@ -43,7 +43,16 @@ public class LookAtTopCardOfLibraryAnyTimeEffect extends ContinuousEffectImpl {
default:
throw new IllegalArgumentException("Unknown target library type: " + targetLibrary);
}
staticText = duration.toString().isEmpty() ? "" : duration + " you may look at the top card of " + libInfo + " any time.";
StringBuilder sb = new StringBuilder();
String durationString = duration.toString();
if (durationString != null && !durationString.isEmpty()) {
sb.append(durationString);
sb.append(' ');
}
sb.append("you may look at the top card of ");
sb.append(libInfo);
sb.append(" any time");
staticText = sb.toString();
}
protected LookAtTopCardOfLibraryAnyTimeEffect(final LookAtTopCardOfLibraryAnyTimeEffect effect) {