Fixed discard piles not populating for opponents after refresh in PC formats. Fixed "removed from game" pile not populating after refresh.
This commit is contained in:
@@ -254,7 +254,7 @@ public class GameState {
|
|||||||
cardIterator.remove();
|
cardIterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (cardsToSendAtLoopStart != cardsLeftToSent.size() && cardsLeftToSent.size() > 0);
|
} while (cardsToSendAtLoopStart != cardsLeftToSent.size() && !cardsLeftToSent.isEmpty());
|
||||||
|
|
||||||
// Finally the stacked ones
|
// Finally the stacked ones
|
||||||
for (List<PhysicalCardImpl> physicalCards : _stacked.values())
|
for (List<PhysicalCardImpl> physicalCards : _stacked.values())
|
||||||
@@ -271,11 +271,13 @@ public class GameState {
|
|||||||
for (PhysicalCardImpl physicalCard : physicalCards)
|
for (PhysicalCardImpl physicalCard : physicalCards)
|
||||||
listener.cardCreated(physicalCard);
|
listener.cardCreated(physicalCard);
|
||||||
|
|
||||||
List<PhysicalCardImpl> discard = _discards.get(playerId);
|
for (List<PhysicalCardImpl> physicalCards : _removed.values())
|
||||||
if (discard != null) {
|
for (PhysicalCardImpl physicalCard : physicalCards)
|
||||||
for (PhysicalCardImpl physicalCard : discard)
|
listener.cardCreated(physicalCard);
|
||||||
|
|
||||||
|
for (List<PhysicalCardImpl> physicalCards : _discards.values())
|
||||||
|
for (PhysicalCardImpl physicalCard : physicalCards)
|
||||||
listener.cardCreated(physicalCard);
|
listener.cardCreated(physicalCard);
|
||||||
}
|
|
||||||
|
|
||||||
List<PhysicalCardImpl> adventureDeck = _adventureDecks.get(playerId);
|
List<PhysicalCardImpl> adventureDeck = _adventureDecks.get(playerId);
|
||||||
if (adventureDeck != null) {
|
if (adventureDeck != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user