New card id is given to card, only if it's being put into zone in play.

This commit is contained in:
marcins78@gmail.com
2011-12-25 16:48:22 +00:00
parent 540ddf44c9
commit d69a934207

View File

@@ -395,7 +395,8 @@ public class GameState {
} }
private void addCardToZone(LotroGame game, PhysicalCard card, Zone zone, boolean end) { private void addCardToZone(LotroGame game, PhysicalCard card, Zone zone, boolean end) {
assignNewCardId(card); if (zone.isInPlay())
assignNewCardId(card);
List<PhysicalCardImpl> zoneCards = getZoneCards(card.getOwner(), card.getBlueprint().getCardType(), zone); List<PhysicalCardImpl> zoneCards = getZoneCards(card.getOwner(), card.getBlueprint().getCardType(), zone);
if (end) if (end)