Some log improvement for player moves card.

This commit is contained in:
LevelX2 2014-08-12 23:58:38 +02:00
parent 56af185d27
commit ae9f056e1a

View file

@ -2400,7 +2400,15 @@ public abstract class PlayerImpl implements Player, Serializable {
sb.append("from ").append(fromZone.toString().toLowerCase(Locale.ENGLISH)).append(" ");
}
}
sb.append("to the ").append(toTop ? "top":"bottom").append(" of his or her library");
sb.append("to the ").append(toTop ? "top":"bottom");
if (card.getOwnerId().equals(getId())) {
sb.append(" of his or her library");
} else {
Player player = game.getPlayer(card.getOwnerId());
if (player != null) {
sb.append(" of ").append(player.getName()).append("'s library");
}
}
game.informPlayers(sb.toString());
result = true;
}