If deck doesn't have ring - do not attempt to validate it.
This commit is contained in:
@@ -75,7 +75,8 @@ public class DefaultLotroGame implements LotroGame {
|
||||
|
||||
cards.put(playerId, deck);
|
||||
ringBearers.put(playerId, lotroDeck.getRingBearer());
|
||||
rings.put(playerId, lotroDeck.getRing());
|
||||
if (lotroDeck.getRing() != null)
|
||||
rings.put(playerId, lotroDeck.getRing());
|
||||
}
|
||||
|
||||
_gameState = new GameState();
|
||||
@@ -100,7 +101,6 @@ public class DefaultLotroGame implements LotroGame {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean shouldAutoPass(String playerId, Phase phase) {
|
||||
final Set<Phase> passablePhases = _autoPassConfiguration.get(playerId);
|
||||
|
||||
@@ -609,7 +609,8 @@ public class HallServer extends AbstractServer {
|
||||
CardCollection ownedCollection = _collectionsManager.getPlayerCollection(player, "permanent+trophy");
|
||||
|
||||
LotroDeck filteredSpecialCardsDeck = new LotroDeck(lotroDeck.getDeckName());
|
||||
filteredSpecialCardsDeck.setRing(filterCard(lotroDeck.getRing(), ownedCollection));
|
||||
if (lotroDeck.getRing() != null)
|
||||
filteredSpecialCardsDeck.setRing(filterCard(lotroDeck.getRing(), ownedCollection));
|
||||
filteredSpecialCardsDeck.setRingBearer(filterCard(lotroDeck.getRingBearer(), ownedCollection));
|
||||
|
||||
for (String site : lotroDeck.getSites())
|
||||
|
||||
Reference in New Issue
Block a user