* Some minor code and text clean up.

This commit is contained in:
LevelX2 2020-06-12 15:14:28 +02:00
parent bc2d5caa42
commit f480d0bebb
4 changed files with 13 additions and 12 deletions

View file

@ -55,8 +55,8 @@ public abstract class GameCommanderImpl extends GameImpl {
Player player = getPlayer(playerId);
if (player != null) {
// add new commanders
for (UUID id : player.getSideboard()) {
Card card = this.getCard(id);
for (UUID cardId : player.getSideboard()) {
Card card = this.getCard(cardId);
if (card != null) {
// Check for companions. If it is the only card in the sideboard, it is the commander, not a companion.
if (player.getSideboard().size() > 1 && card.getAbilities(this).stream().anyMatch(ability -> ability instanceof CompanionAbility)) {

View file

@ -4272,7 +4272,8 @@ public abstract class PlayerImpl implements Player, Serializable {
cards.addAll(getLibrary().getTopCards(game, value));
if (!cards.isEmpty()) {
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY,
new FilterCard("cards to PUT on the BOTTOM of your library (Scry)"));
new FilterCard("card" + (cards.size() == 1 ? "":"s")
+ " to PUT on the BOTTOM of your library (Scry)"));
chooseTarget(Outcome.Benefit, cards, target, source, game);
putCardsOnBottomOfLibrary(new CardsImpl(target.getTargets()), game, source, true);
cards.removeAll(target.getTargets());