* 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)) {